refactor idle timeouts

This commit is contained in:
Shivaram Lingamneni
2017-10-15 12:24:28 -04:00
parent b86fc105cd
commit e540fde816
5 changed files with 189 additions and 55 deletions
-1
View File
@@ -416,7 +416,6 @@ func (server *Server) tryRegister(c *Client) {
reason += fmt.Sprintf(" [%s]", info.Time.Duration.String())
}
c.Send(nil, "", "ERROR", fmt.Sprintf("You are banned from this server (%s)", reason))
c.quitMessageSent = true
c.destroy()
return
}