don't double-close socket

This commit is contained in:
Jeremy Latt
2014-02-14 19:05:30 -08:00
parent 4d9742d033
commit 3a9027e3dc
3 changed files with 2 additions and 7 deletions
-2
View File
@@ -169,7 +169,6 @@ func (s *Server) GenerateGuestNick() string {
func (s *Server) tryRegister(c *Client) {
if c.HasNick() && c.HasUsername() {
c.registered = true
c.phase = Normal
c.loginTimer.Stop()
c.Reply(
@@ -250,7 +249,6 @@ func (m *PassCommand) HandleAuthServer(s *Server) {
return
}
client.authorized = true
client.phase = Registration
}