diff options
author | Sadie Powell <sadie@witchery.services> | 2024-02-11 18:16:20 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-02-11 18:18:18 +0000 |
commit | 5c50bcb9c76afc6e2d8552ebc57674f385c674fc (patch) | |
tree | dbf7e8d4202cbef6528972d0e3501f7872aedc9b /src/timers.cpp | |
parent | cef56abea4cf302d20ba7ab33719e86276b672ea (diff) |
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.
Diffstat (limited to 'src/timers.cpp')
-rw-r--r-- | src/timers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/timers.cpp b/src/timers.cpp index 9e0f46277..fed5d6396 100644 --- a/src/timers.cpp +++ b/src/timers.cpp @@ -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; } |