mirror of
https://github.com/anope/anope.git
synced 2026-06-28 20:16:38 +02:00
Remove the time_t parameter from Tick and TickTimers.
Most uses of Tick do not use the parameter and even when it is used it is always the same as CurTime.
This commit is contained in:
+4
-4
@@ -89,20 +89,20 @@ void TimerManager::DelTimer(Timer *t)
|
||||
}
|
||||
}
|
||||
|
||||
void TimerManager::TickTimers(time_t ctime)
|
||||
void TimerManager::TickTimers()
|
||||
{
|
||||
while (!Timers.empty())
|
||||
{
|
||||
std::multimap<time_t, Timer *>::iterator it = Timers.begin();
|
||||
Timer *t = it->second;
|
||||
|
||||
if (t->GetTimer() > ctime)
|
||||
if (t->GetTimer() > Anope::CurTime)
|
||||
break;
|
||||
|
||||
t->Tick(ctime);
|
||||
t->Tick();
|
||||
|
||||
if (t->GetRepeat())
|
||||
t->SetTimer(ctime + t->GetSecs());
|
||||
t->SetTimer(Anope::CurTime + t->GetSecs());
|
||||
else
|
||||
delete t;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user