summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/timer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/timer.cpp b/src/timer.cpp
index 1c8de4cb9..4fee71742 100644
--- a/src/timer.cpp
+++ b/src/timer.cpp
@@ -30,6 +30,13 @@ void Timer::SetInterval(time_t newinterval)
ServerInstance->Timers.AddTimer(this);
}
+Timer::Timer(unsigned int secs_from_now, time_t now, bool repeating)
+ : trigger(now + secs_from_now)
+ , secs(secs_from_now)
+ , repeat(repeating)
+{
+}
+
Timer::~Timer()
{
ServerInstance->Timers.DelTimer(this);