summaryrefslogtreecommitdiff
path: root/include/bancache.h
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-23 18:15:04 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-23 18:15:04 +0000
commit164998f1e6e2cb885fb4d630ded29ed5191218c8 (patch)
tree74236e203aafac2b96b0b35f30dc481452eea971 /include/bancache.h
parent2f1b4c7ce35651262f7903e801fd9428881ee05b (diff)
Patch from Namegduf converting all instances (where possible) of time() -> ServerInstance->Time(). Thanks!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7
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;
}
};