Fix handling of empty response to SASL challenge

This commit is contained in:
fox.cpp 2020-06-05 12:34:29 +03:00 committed by Simon Ser
parent 6c1634799a
commit 1fa5195b2f
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error {
// TODO: send response in multiple chunks if >= 400 bytes
var respStr = "+"
if resp != nil {
if len(resp) != 0 {
respStr = base64.StdEncoding.EncodeToString(resp)
}