Merge pull request #113 from irccloud/sasl_cap_fix

Fix SASL where additional caps are requested
This commit is contained in:
Thomas Jager 2019-02-21 15:18:30 +01:00 committed by GitHub
commit e4af78aa4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")}
}