diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bancache.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/bancache.h b/include/bancache.h index 7251596db..e39a26d64 100644 --- a/include/bancache.h +++ b/include/bancache.h @@ -48,15 +48,14 @@ class CoreExport BanCacheHit bool IsPositive() const { return (!Reason.empty()); } }; -/* A container of ban cache items. - * must be defined after class BanCacheHit. - */ -typedef TR1NS::unordered_map<std::string, BanCacheHit*, TR1NS::hash<std::string> > BanCacheHash; - /** A manager for ban cache, which allocates and deallocates and checks cached bans. */ class CoreExport BanCacheManager { + /** A container of ban cache items. + */ + typedef TR1NS::unordered_map<std::string, BanCacheHit*, TR1NS::hash<std::string> > BanCacheHash; + BanCacheHash BanHash; bool RemoveIfExpired(BanCacheHash::iterator& it); |