diff --git a/irc_sasl.go b/irc_sasl.go index fd9df7b..3346a46 100644 --- a/irc_sasl.go +++ b/irc_sasl.go @@ -20,7 +20,7 @@ func (irc *Connection) setupSASLCallbacks(result chan<- *SASLResult) { result <- &SASLResult{true, errors.New("no SASL capability " + e.Arguments[2])} } } - if e.Arguments[1] == "ACK" { + if e.Arguments[1] == "ACK" && e.Arguments[2] == "sasl" { if irc.SASLMech != "PLAIN" { result <- &SASLResult{true, errors.New("only PLAIN is supported")} }