From 69b7dc9c316a6cbd1fdb846e2cc93fed96da329f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 11 Jan 2021 22:02:20 +0300 Subject: fixes #2686 ([IRC] SASL authentication failed) --- protocols/IRCG/src/commandmonitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/IRCG/src/commandmonitor.cpp') diff --git a/protocols/IRCG/src/commandmonitor.cpp b/protocols/IRCG/src/commandmonitor.cpp index 42f6d66ee8..a402668e45 100644 --- a/protocols/IRCG/src/commandmonitor.cpp +++ b/protocols/IRCG/src/commandmonitor.cpp @@ -2162,7 +2162,7 @@ bool CIrcProto::OnIrc_AUTH_FAIL(const CIrcMessage*) bool CIrcProto::OnIrc_AUTHENTICATE(const CIrcMessage *pmsg) { if (m_bUseSASL && pmsg->parameters[0] == "+") { - CMStringA payload(FORMAT, "%S%c%S%c%s%c", m_userID, 0, m_userID, 0, m_password, 0); + CMStringA payload(FORMAT, "%S%c%S%c%s%c", m_nick, 0, m_nick, 0, m_password, 0); NLSend("AUTHENTICATE %s\r\n", ptrA(mir_base64_encode(payload, payload.GetLength())).get()); NLSend("CAP END\r\n"); } -- cgit v1.2.3