diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-02 22:19:19 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-02 22:19:19 +0000 |
commit | dc4b9afebbea5c8ca2d5b86c84411153b1622f71 (patch) | |
tree | 92ca6661ccceea15a215e77f3879b4c036ada67c /include/timers.h | |
parent | 85b409df8577e2433724a056564ab62ff72c4c89 (diff) |
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
Diffstat (limited to 'include/timers.h')
-rw-r--r-- | include/timers.h | 11 |
1 files changed, 9 insertions, 2 deletions
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)); |