From 0491f08d73ba6014e717083f31cc777c6a9bfea3 Mon Sep 17 00:00:00 2001 From: Justin Date: Sun, 9 Aug 2015 16:31:18 -0700 Subject: [PATCH] Fixed initial connection livliness timers. Initial timer changed to use the quit function before IRC handshake has been completed --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 21acc06..2d7700d 100644 --- a/client.go +++ b/client.go @@ -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