aboutsummaryrefslogtreecommitdiff
path: root/src/timer.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-07-10 12:17:55 +0200
committerGravatar Attila Molnar2014-07-10 12:17:55 +0200
commitacccaa39641500b8a691db4136e6571102a438ed (patch)
tree5faed16f0fc7ac11566d6df19561abd3c3ad8c43 /src/timer.cpp
parentMove the definition of Timer::Timer() into the source file from the header (diff)
Remove current time parameter of the Timer constructor
Diffstat (limited to 'src/timer.cpp')
-rw-r--r--src/timer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timer.cpp b/src/timer.cpp
index 4fee71742..0b0d8bac3 100644
--- a/src/timer.cpp
+++ b/src/timer.cpp
@@ -30,8 +30,8 @@ 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)
+Timer::Timer(unsigned int secs_from_now, bool repeating)
+ : trigger(ServerInstance->Time() + secs_from_now)
, secs(secs_from_now)
, repeat(repeating)
{