commit 0681de6

Simon Ser  ·  2021-11-28 18:17:12 +0000 UTC
parent 231b98d
Use RPL_SASLSUCCESS to end registration

See https://github.com/ircv3/ircv3-specifications/pull/476
1 files changed,  +1, -2
+1, -2
 1@@ -512,7 +512,7 @@ func (s *Session) handleUnregistered(msg Message) (Event, error) {
 2 
 3 		s.out <- NewMessage("NICK", nick+"_")
 4 	case rplSaslsuccess:
 5-		// do nothing
 6+		s.endRegistration()
 7 	default:
 8 		return s.handleRegistered(msg)
 9 	}
10@@ -572,7 +572,6 @@ func (s *Session) handleMessageRegistered(msg Message, playback bool) (Event, er
11 			return nil, err
12 		}
13 
14-		s.endRegistration()
15 		prefix := ParsePrefix(nuh)
16 		s.user = prefix.User
17 		s.host = prefix.Host