47 BanCacheHit(
const std::string &ip,
const std::string &type,
const std::string &reason)
50 this->Reason = reason;
52 this->Expiry = ServerInstance->
Time() + 86400;
56 BanCacheHit(
const std::string &ip,
const std::string &type,
const std::string &reason, time_t seconds)
59 this->Reason = reason;
61 this->Expiry = ServerInstance->
Time() + seconds;
68 typedef nspace::hash_map<std::string, BanCacheHit*, nspace::hash<std::string> > BanCacheHash;
75 BanCacheHash* BanHash;
83 BanCacheHit *AddHit(
const std::string &ip,
const std::string &type,
const std::string &reason);
86 BanCacheHit *AddHit(
const std::string &ip,
const std::string &type,
const std::string &reason, time_t seconds);
94 unsigned int RemoveEntries(
const std::string &type,
bool positive);
98 this->BanHash =
new BanCacheHash();