summaryrefslogtreecommitdiff
path: root/src/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timer.cpp')
-rw-r--r--src/timer.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/timer.cpp b/src/timer.cpp
index 8e11ee4a7..0b0d8bac3 100644
--- a/src/timer.cpp
+++ b/src/timer.cpp
@@ -21,7 +21,6 @@
#include "inspircd.h"
-#include "timer.h"
void Timer::SetInterval(time_t newinterval)
{
@@ -31,6 +30,13 @@ void Timer::SetInterval(time_t newinterval)
ServerInstance->Timers.AddTimer(this);
}
+Timer::Timer(unsigned int secs_from_now, bool repeating)
+ : trigger(ServerInstance->Time() + secs_from_now)
+ , secs(secs_from_now)
+ , repeat(repeating)
+{
+}
+
Timer::~Timer()
{
ServerInstance->Timers.DelTimer(this);