diff options
author | mooff <mooff@cyberspace.baby> | 2021-11-25 00:51:57 +0000 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-11-25 18:35:34 +0100 |
commit | c5a148573da8542178413dadac10d3df13a596cf (patch) | |
tree | e78c5dd1dfc43467f9a377171d45c5096cb4fa29 /irc/session.go | |
parent | Merge MODE messages (diff) |
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.
Diffstat (limited to '')
-rw-r--r-- | irc/session.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/irc/session.go b/irc/session.go index ea852d7..2b9680a 100644 --- a/irc/session.go +++ b/irc/session.go @@ -168,6 +168,10 @@ func NewSession(out chan<- Message, params SessionParams) *Session { s.out <- NewMessage("NICK", s.nick) s.out <- NewMessage("USER", s.user, "0", "*", s.real) + if s.auth == nil { + s.endRegistration() + } + return s } |