1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 08:53:11 +02:00

small improvement for Timer::SetSecs()

This commit is contained in:
DukePyrolator
2011-06-09 06:16:31 +02:00
parent 74361bec05
commit 717b4c3406
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -72,6 +72,8 @@ time_t Timer::GetSetTime() const
void Timer::SetSecs(time_t t)
{
secs = t;
trigger = Anope::CurTime + t;
sort(TimerManager::Timers.begin(), TimerManager::Timers.end(), TimerManager::TimerComparison);
}
/** Returns the interval between ticks