summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 6b4800887..a4b6181ab 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -293,6 +293,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
OpenLog(argv, argc);
this->stats = new serverstats();
this->Parser = new CommandParser();
+ this->Timers = new TimerManager();
Config->ClearStack();
Config->Read(true, NULL);
CheckRoot();
@@ -701,7 +702,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
{
FOREACH_MOD(I_OnBackgroundTimer,OnBackgroundTimer(TIME));
}
- TickMissedTimers(TIME);
+ Timers->TickMissedTimers(TIME);
expire_run = true;
return;
}
@@ -735,7 +736,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
if (process_module_sockets)
this->DoSocketTimeouts(TIME);
- TickTimers(TIME);
+ Timers->TickTimers(TIME);
/* Call the socket engine to wait on the active
* file descriptors. The socket engine has everything's