summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 00:02:31 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 00:02:31 +0000
commitad3c37e38c6c170c1f7cc3232db748ebdc62aa94 (patch)
tree4b59a16e8bbd2241a4b49c953c089a9180e4a43c /src/modules
parentf5872557eb0eee0f71f16ad39d693024f4cf8b1f (diff)
Relocate timer stuff into TimerManager class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4827 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_safelist.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp
index 45177805e..000d1e7d6 100644
--- a/src/modules/m_safelist.cpp
+++ b/src/modules/m_safelist.cpp
@@ -26,6 +26,8 @@ using namespace std;
extern time_t TIME;
+extern InspIRCd* ServerInstance;
+
class ListData : public classbase
{
public:
@@ -131,7 +133,7 @@ class ListTimer : public InspTimer
}
ListTimer* MyTimer = new ListTimer(1,Srv);
- Srv->AddTimer(MyTimer);
+ ServerInstance->Timers->AddTimer(MyTimer);
}
};
@@ -146,7 +148,7 @@ class ModuleSafeList : public Module
Srv = Me;
MyTimer = new ListTimer(1,Srv);
- Srv->AddTimer(MyTimer);
+ ServerInstance->Timers->AddTimer(MyTimer);
}
virtual ~ModuleSafeList()