diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-09 19:08:43 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-09 19:08:43 +0300 |
commit | e1c1fd4eea14ca531e28415b50d35c35a840d558 (patch) | |
tree | b5b5c1d1208e83ea7e84c6441ef17f9717d63cb6 /protocols/IRCG/src/irclib.cpp | |
parent | 1007e462402626f15565ac10d9a7ac0ab30fa753 (diff) |
fixes #1082
Diffstat (limited to 'protocols/IRCG/src/irclib.cpp')
-rw-r--r-- | protocols/IRCG/src/irclib.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |