Fixed initial connection livliness timers.
Initial timer changed to use the quit function before IRC handshake has been completed
This commit is contained in:
parent
d2d50c849b
commit
0491f08d73
@ -40,7 +40,7 @@ type Client struct {
|
|||||||
func (s *Server) newClient(ircConn *irc.Conn, conn net.Conn) *Client {
|
func (s *Server) newClient(ircConn *irc.Conn, conn net.Conn) *Client {
|
||||||
client := &Client{Conn: ircConn, conn: conn, Server: s}
|
client := &Client{Conn: ircConn, conn: conn, Server: s}
|
||||||
client.authorized = len(s.Config.Password) == 0
|
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.channels = map[string]*Channel{}
|
||||||
client.UserModeSet = NewUserModeSet()
|
client.UserModeSet = NewUserModeSet()
|
||||||
return client
|
return client
|
||||||
|
Loading…
Reference in New Issue
Block a user