From 1e9b62a9354f9165f5d7dbb78f9e025b7bbcffae Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Wed, 27 Dec 2017 16:20:19 +0100 Subject: [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. --- protocols/IRCG/src/commandmonitor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/IRCG') 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; -- cgit v1.2.3