summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-10 22:29:59 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-10 22:29:59 +0000
commit695644d0c479228feb92e2cd9501d15819778c24 (patch)
treeec3389db1a9fa7a957618d1a02765a4df3c79aa0 /src/main.c
parentc8c89c7af098ad8825309dea4e118413b368a1d6 (diff)
New timer infrastructure, can be used inside modules. Replaces old ENFORCE/COLLIDE/inhabit timers, too. Patch by Adam.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2317 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index afc893b81..b3ab606d9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -27,7 +27,7 @@
*/
#include "services.h"
-#include "timeout.h"
+#include "timers.h"
#include "version.h"
#include "datafiles.h"
#include "modules.h"
@@ -91,7 +91,6 @@ const char version_build[] =
/* the space is needed cause if you build with nothing it will complain */
const char version_flags[] = " " VER_OS VER_MODULE;
-
/******** Local variables! ********/
/* Set to 1 after we've set everything up */
@@ -479,7 +478,7 @@ int main(int ac, char **av, char **envp)
ModuleManager::RunCallbacks();
if (t - last_check >= TimeoutCheck) {
- check_timeouts();
+ TimerManager::TickTimers(t);
last_check = t;
}