~taiite/senpai

c5a148573da8542178413dadac10d3df13a596cf — mooff 2 months ago 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 insertions(+), 0 deletions(-)

M irc/session.go
M irc/session.go => irc/session.go +4 -0
@@ 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
}