#include "inspircd.h"
-void Timer::SetInterval(time_t newinterval)
+void Timer::SetInterval(unsigned int newinterval)
{
ServerInstance->Timers.DelTimer(this);
secs = 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)
{