]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/bancache.h
Wheee, mass commit! this adds const stafety, throwing a compile error if anyone does...
[user/henk/code/inspircd.git] / include / bancache.h
index 5ce8193b6d4a4796cc2f98bcb79f1dc7a5e9f28b..944d69816e5450d19d1de264a8ac5a8e81d0bf9a 100644 (file)
@@ -14,8 +14,6 @@
 #ifndef __BANCACHE_H
 #define __BANCACHE_H
 
-#include <string>
-
 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<std::string, BanCacheHit *, nspace::hash<std::string> > BanCacheHash;
 #else
-typedef nspace::hash_map<std::string, BanCacheHit*, nspace::hash_compare<string, less<string> > > BanCacheHash;
+typedef nspace::hash_map<std::string, BanCacheHit*, nspace::hash_compare<std::string, std::less<std::string> > > BanCacheHash;
 #endif
 
 class CoreExport BanCacheManager : public classbase