X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fbancache.h;h=8104860c4af9fc54b0769d073789c50b1c5e11ee;hb=349b6b91931f3e5ab03bf5ea085d1928c306afe2;hp=b6e037f79dde8e955c3f5e99cceba6b2c75277ae;hpb=1200d6285b1d64699c6fa2c8241e2ee40f52d2a3;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/bancache.h b/include/bancache.h index b6e037f79..8104860c4 100644 --- a/include/bancache.h +++ b/include/bancache.h @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team + * InspIRCd: (C) 2002-2009 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -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; } };