From 8fa9122cdb9538044ac5aa6fdab66eccf07192f1 Mon Sep 17 00:00:00 2001 From: psychon Date: Thu, 24 Jul 2008 11:54:26 +0000 Subject: [PATCH] Fix the keepnick module - 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/keepnick.cpp b/modules/keepnick.cpp index 2b56e7e5..af31189d 100644 --- a/modules/keepnick.cpp +++ b/modules/keepnick.cpp @@ -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;