From 6831b0ffdc1a5f678cef2f7c21fb6d580e9fbab2 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Tue, 24 Dec 2019 19:33:33 +0200 Subject: [PATCH] Fix `authcid` variable name --- irc/handlers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/irc/handlers.go b/irc/handlers.go index be17f0b8..81849517 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -410,17 +410,17 @@ func authenticateHandler(server *Server, client *Client, msg ircmsg.IrcMessage, func authPlainHandler(server *Server, client *Client, mechanism string, value []byte, rb *ResponseBuffer) bool { splitValue := bytes.Split(value, []byte{'\000'}) - var accountKey, authzid string + var accountKey, authcid string nick := client.Nick() if len(splitValue) == 3 { accountKey = string(splitValue[0]) - authzid = string(splitValue[1]) + authcid = string(splitValue[1]) if accountKey == "" { - accountKey = authzid - } else if accountKey != authzid { + accountKey = authcid + } else if accountKey != authcid { rb.Add(nil, server.name, ERR_SASLFAIL, nick, client.t("SASL authentication failed: authcid and authzid should be the same")) return false }