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