X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fbancache.h;h=944d69816e5450d19d1de264a8ac5a8e81d0bf9a;hb=dd36852a52e8541306b76c5b88bce8ab9b36654c;hp=5ce8193b6d4a4796cc2f98bcb79f1dc7a5e9f28b;hpb=4b122677df0f5a501ff8ec89d90903d35310ca23;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/bancache.h b/include/bancache.h index 5ce8193b6..944d69816 100644 --- a/include/bancache.h +++ b/include/bancache.h @@ -14,8 +14,6 @@ #ifndef __BANCACHE_H #define __BANCACHE_H -#include - class CoreExport BanCacheHit : public classbase { private: @@ -32,7 +30,7 @@ class CoreExport BanCacheHit : public classbase this->Type = type; this->Reason = reason; this->IP = ip; - this->Expiry = time(NULL) + 60; // XXX changeme + this->Expiry = time(NULL) + 86400; // a day. this might seem long, but entries will be removed as glines/etc expire. } // overridden to allow custom time @@ -50,7 +48,7 @@ class CoreExport BanCacheHit : public classbase #ifndef WIN32 typedef nspace::hash_map > BanCacheHash; #else -typedef nspace::hash_map > > BanCacheHash; +typedef nspace::hash_map > > BanCacheHash; #endif class CoreExport BanCacheManager : public classbase