summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/bancache.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/bancache.h b/include/bancache.h
index 75d1a67b5..b9eca943c 100644
--- a/include/bancache.h
+++ b/include/bancache.h
@@ -34,6 +34,16 @@ class CoreExport BanCacheHit : public classbase
this->IP = ip;
this->Expiry = time(NULL) + 60; // XXX changeme
}
+
+ // 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;
+ }
};
// must be defined after class BanCacheHit.