#ifndef __BANCACHE_H
#define __BANCACHE_H
-#include <string>
-
class CoreExport BanCacheHit : public classbase
{
private:
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
#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