diff options
Diffstat (limited to 'protocols/IRCG/src')
-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; } |