Fix handling of empty response to SASL challenge

git-svn-id: file:///srv/svn/repo/suika/trunk@318 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
fox.cpp 2020-06-05 09:35:43 +00:00
parent adbb37b8d7
commit 69e7615895

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