Fixed initial connection livliness timers.

Initial timer changed to use the quit function before IRC handshake has been completed
This commit is contained in:
Justin committed 2015-08-09 16:31:18 -07:00
1 parent d2d50c849b
commit 0491f08d73
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ type Client struct {
func (s *Server) newClient(ircConn *irc.Conn, conn net.Conn) *Client {
client := &Client{Conn: ircConn, conn: conn, Server: s}
client.authorized = len(s.Config.Password) == 0
client.idleTimer = time.AfterFunc(time.Minute*3, client.idle)
client.idleTimer = time.AfterFunc(time.Minute*1, client.quit)
client.channels = map[string]*Channel{}
client.UserModeSet = NewUserModeSet()
return client