+ std::string Type;
+ std::string Reason;
+ std::string IP;
+ time_t Expiry;
+
+ BanCacheHit(InspIRCd *Instance, const std::string &ip, const std::string &type, const std::string &reason)
+ {
+ ServerInstance = Instance;
+ 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.
+ }
+
+ // overridden to allow custom time
+ BanCacheHit(InspIRCd *Instance, const std::string &ip, const std::string &type, const std::string &reason, time_t seconds)
+ {
+ ServerInstance = Instance;
+ this->Type = type;
+ this->Reason = reason;
+ this->IP = ip;
+ this->Expiry = time(NULL) + seconds;
+ }