mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Set the irc nick before we call the module hook OnIRCConnected() - thanks SilverLeo
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@733 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -88,6 +88,7 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
SetTimeout(900); // Now that we are connected, let nature take its course
|
||||
PutIRC("WHO " + sNick);
|
||||
|
||||
SetNick(sNick);
|
||||
m_pUser->StartAwayNickTimer();
|
||||
|
||||
MODULECALL(OnIRCConnected(), m_pUser, NULL, );
|
||||
@@ -107,8 +108,6 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
}
|
||||
}
|
||||
|
||||
SetNick(sNick);
|
||||
|
||||
m_pUser->ClearRawBuffer();
|
||||
m_pUser->AddRawBuffer(":" + sServer + " " + sCmd + " ", " " + sRest);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user