summaryrefslogtreecommitdiff
path: root/src/timers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timers.cpp')
-rw-r--r--src/timers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/timers.cpp b/src/timers.cpp
index a8cef007b..3441d1721 100644
--- a/src/timers.cpp
+++ b/src/timers.cpp
@@ -73,7 +73,9 @@ void Timer::SetSecs(time_t t)
{
secs = t;
trigger = Anope::CurTime + t;
- sort(TimerManager::Timers.begin(), TimerManager::Timers.end(), TimerManager::TimerComparison);
+
+ TimerManager::DelTimer(this);
+ TimerManager::AddTimer(this);
}
/** Returns the interval between ticks