X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Ftimer.cpp;h=0b0d8bac3664d93add0cffa572fc5666ba161403;hb=c89cc290fbc6d53040fc8abc6fc0b0cb637beee9;hp=8e11ee4a7448442d23ba01e935592cba096aa9f2;hpb=f71e6bf9cb41811f18864f5d4eecb26e29d03f25;p=user%2Fhenk%2Fcode%2Finspircd.git 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);