From e1c1fd4eea14ca531e28415b50d35c35a840d558 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 9 Jan 2018 19:08:43 +0300 Subject: fixes #1082 --- protocols/IRCG/src/irclib.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'protocols/IRCG/src') diff --git a/protocols/IRCG/src/irclib.cpp b/protocols/IRCG/src/irclib.cpp index 0033ec2d6c..38e6944131 100644 --- a/protocols/IRCG/src/irclib.cpp +++ b/protocols/IRCG/src/irclib.cpp @@ -230,6 +230,10 @@ bool CIrcProto::Connect(const CIrcSessionInfo& info) // start receiving messages from host ForkThread(&CIrcProto::ThreadProc, nullptr); Sleep(100); + + if (!m_bUseSASL && info.sPassword.GetLength()) + NLSend("PASS %s\r\n", info.sPassword.c_str()); + NLSend(L"NICK %s\r\n", info.sNick.c_str()); CMStringW userID = GetWord(info.sUserID.c_str(), 0); @@ -243,9 +247,6 @@ bool CIrcProto::Connect(const CIrcSessionInfo& info) HostName = L"host"; NLSend(L"USER %s %s %s :%s\r\n", userID.c_str(), HostName.c_str(), L"server", info.sFullName.c_str()); - if (!m_bUseSASL && info.sPassword.GetLength()) - NLSend("PASS %s\r\n", info.sPassword.c_str()); - return con != nullptr; } -- cgit v1.2.3