mirror of
https://github.com/anope/anope.git
synced 2026-06-27 16:26:39 +02:00
Added Anope::CurTime to keep us from calling time() everywhere
This commit is contained in:
@@ -520,7 +520,7 @@ class DBPlain : public Module
|
||||
if (!IsFile(DatabaseFile))
|
||||
return;
|
||||
|
||||
time_t now = time(NULL);
|
||||
time_t now = Anope::CurTime;
|
||||
tm *tm = localtime(&now);
|
||||
|
||||
if (tm->tm_mday != LastDay)
|
||||
|
||||
Reference in New Issue
Block a user