mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-12 19:18:11 -07:00
don't double-close socket
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user