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:
prozacx
2006-05-29 19:58:30 +00:00
parent 1e4a50b075
commit b1f73a78e2

View File

@@ -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);