1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:24:49 +02:00

Deduplicate the timer constructors with delegation.

This commit is contained in:
Sadie Powell
2026-05-02 15:38:09 +01:00
parent f12b590a6d
commit e45814bfd6
+1 -4
View File
@@ -18,11 +18,8 @@
std::multimap<time_t, Timer *> TimerManager::Timers;
Timer::Timer(time_t time_from_now)
: trigger(Anope::CurTime + std::abs(time_from_now))
, secs(time_from_now)
: Timer(nullptr, time_from_now)
{
if (time_from_now)
TimerManager::AddTimer(this);
}
Timer::Timer(Module *creator, time_t time_from_now)