Info about current irc connections now gets sent to the client, the correct nick shows up when sending messages

This commit is contained in:
khlieng 2015-01-22 01:03:25 +01:00
parent 83ddce0468
commit 9012e4dee5
7 changed files with 26 additions and 10 deletions

View file

@ -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)