diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bancache.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/bancache.h b/include/bancache.h index e975bb68a..70ec09f02 100644 --- a/include/bancache.h +++ b/include/bancache.h @@ -45,6 +45,8 @@ class CoreExport BanCacheHit : Type(type), Reason(reason), Expiry(ServerInstance->Time() + seconds) { } + + bool IsPositive() const { return (!Reason.empty()); } }; /* A container of ban cache items. @@ -73,7 +75,7 @@ class CoreExport BanCacheManager * @param type The type of bancache entries to remove (e.g. 'G') * @param positive Remove either positive (true) or negative (false) hits. */ - unsigned int RemoveEntries(const std::string &type, bool positive); + void RemoveEntries(const std::string& type, bool positive); BanCacheManager() { |