Merge pull request #113 from irccloud/sasl_cap_fix
Fix SASL where additional caps are requested
This commit is contained in:
commit
e4af78aa4f
@ -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")}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user