From b1f73a78e2defd6344dd03db4dd34eafd85a6718 Mon Sep 17 00:00:00 2001 From: prozacx Date: Mon, 29 May 2006 19:58:30 +0000 Subject: [PATCH] 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 --- IRCSock.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/IRCSock.cpp b/IRCSock.cpp index 610089cb..c560738f 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -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);