From 8bc8dc92e44bd371872b159ac5583b6788a8110d Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 15 Nov 2007 15:59:05 +0000 Subject: Add another BanCache stub. I'm not writing it yet as the storage of entries has not yet been finalised. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8595 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/bancache.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/bancache.h') diff --git a/include/bancache.h b/include/bancache.h index 2ae740ece..cabd85365 100644 --- a/include/bancache.h +++ b/include/bancache.h @@ -57,6 +57,12 @@ class CoreExport BanCacheManager : public classbase BanCacheHit *GetHit(const std::string &ip); bool RemoveHit(BanCacheHit *b); + /** Removes all entries of a given type, either positive or negative. Returns the number of hits removed. + * @param type The type of bancache entries to remove (e.g. 'G') + * @param positive Remove either positive (true) or negative (false) hits. + */ + int RemoveEntries(const std::string &type, bool positive); + BanCacheManager(InspIRCd *Instance) { this->ServerInstance = Instance; -- cgit v1.2.3