From 4b122677df0f5a501ff8ec89d90903d35310ca23 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 16 Jan 2008 21:43:03 +0000 Subject: Add an overridden AddHit to BanCacheManager, allowing the expiry time to be set. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8723 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/bancache.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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); -- cgit v1.2.3