commit c5a1485
mooff
·
2021-11-25 00:51:57 +0000 UTC
parent b7f3fa1
Finish registration when not using SASL We wait until after AUTHENTICATE to send CAP END like a good client, but it needs to be sent when SASL isn't used, too.
1 files changed,
+4,
-0
+4,
-0
1@@ -168,6 +168,10 @@ func NewSession(out chan<- Message, params SessionParams) *Session {
2 s.out <- NewMessage("NICK", s.nick)
3 s.out <- NewMessage("USER", s.user, "0", "*", s.real)
4
5+ if s.auth == nil {
6+ s.endRegistration()
7+ }
8+
9 return s
10 }
11