From 0681de6b480b30613832fb96d8632a169f063ddd Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 28 Nov 2021 18:17:12 +0000 Subject: Use RPL_SASLSUCCESS to end registration See https://github.com/ircv3/ircv3-specifications/pull/476 --- irc/session.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'irc/session.go') diff --git a/irc/session.go b/irc/session.go index 2b9680a..b6d5873 100644 --- a/irc/session.go +++ b/irc/session.go @@ -512,7 +512,7 @@ func (s *Session) handleUnregistered(msg Message) (Event, error) { s.out <- NewMessage("NICK", nick+"_") case rplSaslsuccess: - // do nothing + s.endRegistration() default: return s.handleRegistered(msg) } @@ -572,7 +572,6 @@ func (s *Session) handleMessageRegistered(msg Message, playback bool) (Event, er return nil, err } - s.endRegistration() prefix := ParsePrefix(nuh) s.user = prefix.User s.host = prefix.Host -- cgit v1.2.3