summaryrefslogtreecommitdiff
path: root/include/bancache.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bancache.h')
-rw-r--r--include/bancache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bancache.h b/include/bancache.h
index b6e037f79..7771feb75 100644
--- a/include/bancache.h
+++ b/include/bancache.h
@@ -45,7 +45,7 @@ class CoreExport BanCacheHit : public classbase
this->Type = type;
this->Reason = reason;
this->IP = ip;
- this->Expiry = time(NULL) + 86400; // a day. this might seem long, but entries will be removed as glines/etc expire.
+ this->Expiry = ServerInstance->Time() + 86400; // a day. this might seem long, but entries will be removed as glines/etc expire.
}
// overridden to allow custom time
@@ -55,7 +55,7 @@ class CoreExport BanCacheHit : public classbase
this->Type = type;
this->Reason = reason;
this->IP = ip;
- this->Expiry = time(NULL) + seconds;
+ this->Expiry = ServerInstance->Time() + seconds;
}
};