mirror of
https://github.com/anope/anope.git
synced 2026-07-05 20:33:13 +02:00
Added Anope::CurTime to keep us from calling time() everywhere
This commit is contained in:
@@ -155,7 +155,7 @@ class CommandOSAKill : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
else if (expires > 0)
|
||||
expires += time(NULL);
|
||||
expires += Anope::CurTime;
|
||||
|
||||
if (params.size() <= last_param)
|
||||
{
|
||||
@@ -183,7 +183,7 @@ class CommandOSAKill : public Command
|
||||
buf = "does not expire";
|
||||
else
|
||||
{
|
||||
int wall_expiry = expires - time(NULL);
|
||||
time_t wall_expiry = expires - Anope::CurTime;
|
||||
Anope::string s;
|
||||
|
||||
if (wall_expiry >= 86400)
|
||||
|
||||
Reference in New Issue
Block a user