Refactor irc handler, add tests

This commit is contained in:
Ken-Håvard Lieng 2015-06-16 23:20:53 +02:00
parent d38daf976b
commit 047027ddec
4 changed files with 456 additions and 134 deletions

View file

@ -100,7 +100,7 @@ func handleWS(conn *websocket.Conn) {
}
i.Connect(data.Server)
go handleIRC(i, session)
go newIRCHandler(i, session).run()
session.user.AddServer(storage.Server{
Name: data.Name,