summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src
diff options
context:
space:
mode:
authorAmine Khaldi <amine.khaldi@reactos.org>2017-12-27 16:20:19 +0100
committerGeorge Hazan <ghazan@miranda.im>2017-12-27 18:20:19 +0300
commit1e9b62a9354f9165f5d7dbb78f9e025b7bbcffae (patch)
treeee53597c02087ea563167f032a659680a18fda8e /protocols/IRCG/src
parentc4d854d847fccf44fc2afbea6afb495fbe226b69 (diff)
[IRCG] Addendum to 480f2c3: use m_userID instead of m_name on AUTHENTICATE and send CAP END afterwards. #1069 (#1078)
Thank you @georgehazan for working on this.
Diffstat (limited to 'protocols/IRCG/src')
-rw-r--r--protocols/IRCG/src/commandmonitor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/IRCG/src/commandmonitor.cpp b/protocols/IRCG/src/commandmonitor.cpp
index 840d96eeb3..e07a5e6283 100644
--- a/protocols/IRCG/src/commandmonitor.cpp
+++ b/protocols/IRCG/src/commandmonitor.cpp
@@ -2165,8 +2165,9 @@ 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_name, 0, m_name, 0, m_password, 0);
+ CMStringA payload(FORMAT, "%S%c%S%c%s%c", m_userID, 0, m_userID, 0, m_password, 0);
NLSend("AUTHENTICATE %s\r\n", ptrA(mir_base64_encode(payload, payload.GetLength())).get());
+ NLSend("CAP END\r\n");
}
return true;