Info about current irc connections now gets sent to the client, the correct nick shows up when sending messages
This commit is contained in:
parent
83ddce0468
commit
9012e4dee5
7 changed files with 26 additions and 10 deletions
|
@ -52,6 +52,7 @@ func handleWS(ws *websocket.Conn) {
|
|||
}
|
||||
|
||||
session.sendJSON("channels", channels)
|
||||
session.sendJSON("servers", session.user.GetServers())
|
||||
} else {
|
||||
session = NewSession()
|
||||
session.user = storage.NewUser(UUID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue