Fix empty SASL challenge message

We were sending an empty string. We need to send "+" instead.
This commit is contained in:
Simon Ser 2020-03-21 08:41:14 +01:00
parent cb52f393f4
commit ec98c6f04f
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -454,7 +454,7 @@ func (dc *downstreamConn) handleMessageUnregistered(msg *irc.Message) error {
})
} else {
challengeStr := "+"
if challenge != nil {
if len(challenge) == 0 {
challengeStr = base64.StdEncoding.EncodeToString(challenge)
}