From aca9acf422c76fefa4223f3add27e62e860f2f62 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 23 Feb 2006 19:46:43 +0000 Subject: Fixed to work git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3302 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_safelist.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp index 52e5e36a0..06c7ef348 100644 --- a/src/modules/m_safelist.cpp +++ b/src/modules/m_safelist.cpp @@ -45,14 +45,14 @@ class ListTimer : public InspTimer private: Server* Srv; public: - ListTimer(long interval, Server* Me) : InspTimer(interval), Server(Me) + ListTimer(long interval, Server* Me) : InspTimer(interval), Srv(Me) { } - Tick(time_t TIME) + virtual void Tick(time_t TIME) { log(DEBUG,"*** Timer tick!"); - MyTimer = new ListTimer(1); + ListTimer* MyTimer = new ListTimer(1,Srv); Srv->AddTimer(MyTimer); } }; @@ -68,8 +68,8 @@ class ModuleSafeList : public Module { Srv = Me; - MyTimer = new ListTimer(1); - Srv->AddTimer(MyTimer,Me); + MyTimer = new ListTimer(1,Srv); + Srv->AddTimer(MyTimer); } virtual ~ModuleSafeList() -- cgit v1.2.3