mirror of
https://github.com/anope/anope.git
synced 2026-07-09 17:43:12 +02:00
Added Anope::CurTime to keep us from calling time() everywhere
This commit is contained in:
+1
-1
@@ -1237,7 +1237,7 @@ class CallBack : public Timer
|
||||
private:
|
||||
Module *m;
|
||||
public:
|
||||
CallBack(Module *mod, long time_from_now, time_t now = time(NULL), bool repeating = false) : Timer(time_from_now, now, repeating), m(mod)
|
||||
CallBack(Module *mod, long time_from_now, time_t now = Anope::CurTime, bool repeating = false) : Timer(time_from_now, now, repeating), m(mod)
|
||||
{
|
||||
m->CallBacks.push_back(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user