From dc4b9afebbea5c8ca2d5b86c84411153b1622f71 Mon Sep 17 00:00:00 2001 From: Adam- Date: Fri, 2 Oct 2009 22:19:19 +0000 Subject: Properly remove old callbacks from modules internal list of callbacks list, and cleaned up some of the timers code git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2524 5417fbe8-f217-4b02-8779-1006273d7864 --- include/timers.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/timers.h b/include/timers.h index fd4f30f50..92f5388fd 100644 --- a/include/timers.h +++ b/include/timers.h @@ -99,11 +99,18 @@ class CoreExport TimerManager : public Extensible static void AddTimer(Timer *T); /** Deletes a timer - * @param T A Timer derived class to delete */ + * @param T A Timer derived class to delete + */ static void DelTimer(Timer *T); + /** Check if something is a timer + * @param T A pointer + * @return true or false + */ + static bool IsTimer(Timer *T); + /** Tick all pending timers - * @param time The current time + * @param ctime The current time */ static void TickTimers(time_t ctime = time(NULL)); -- cgit