From d569a50e74b431008d00740723e7189004d01fca Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 9 Jan 2007 19:15:30 +0000 Subject: Someone forgot to make correct deps for timer.h. Fixed. Added InspTimer::CancelRepeat(), we can use this within the Tick method to cancel a repeat so that the timer is deleted after the tick, as DelTimer isnt safe within the Tick method git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6283 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/timer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/timer.h b/include/timer.h index f8e2bdcdf..9820be2fb 100644 --- a/include/timer.h +++ b/include/timer.h @@ -66,6 +66,11 @@ class InspTimer : public Extensible { return secs; } + + void CancelRepeat() + { + repeat = false; + } }; -- cgit v1.2.3