summaryrefslogtreecommitdiff
path: root/include/bancache.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bancache.h')
-rw-r--r--include/bancache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bancache.h b/include/bancache.h
index d69306d7a..5ce8193b6 100644
--- a/include/bancache.h
+++ b/include/bancache.h
@@ -66,6 +66,9 @@ class CoreExport BanCacheManager : public classbase
* @param reason The reason for the ban. Left .empty() if it's a negative match.
*/
BanCacheHit *AddHit(const std::string &ip, const std::string &type, const std::string &reason);
+
+ // Overridden to allow an optional number of seconds before expiry
+ BanCacheHit *AddHit(const std::string &ip, const std::string &type, const std::string &reason, time_t seconds);
BanCacheHit *GetHit(const std::string &ip);
bool RemoveHit(BanCacheHit *b);