]> jfr.im git - irc/rizon/znc.git/commitdiff
Fix the keepnick module
authorpsychon <redacted>
Thu, 24 Jul 2008 11:54:26 +0000 (11:54 +0000)
committerpsychon <redacted>
Thu, 24 Jul 2008 11:54:26 +0000 (11:54 +0000)
- Properly initialize that pointer-beast.
- Actually compile.

Yeah, I know, I fail...

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1153 726aef4b-f618-498e-8847-2d620e286838

modules/keepnick.cpp

index 2b56e7e539b2bbb7a9d042b51955718d4df18d1c..af31189dd8453f1d9c33aaf50faef67235ad466e 100644 (file)
@@ -30,8 +30,10 @@ public:
        ~CKeepNickMod() {}
 
        bool OnLoad(const CString& sArgs, CString& sMessage) {
+               m_pTimer = NULL;
+
                // Check if we need to start the timer
-               if (m_pUser()->IsIRCConnected())
+               if (m_pUser->IsIRCConnected())
                        OnIRCConnected();
 
                return true;