]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/bancache.h
Add a counter for errored files
[user/henk/code/inspircd.git] / include / bancache.h
index a96b194f9ce7066f84fdbc722e5a90908e41f575..2ae740ece32cb19cb393deda9b7f7f4d52124235 100644 (file)
@@ -35,7 +35,11 @@ class CoreExport BanCacheHit : public classbase
 };
 
 // must be defined after class BanCacheHit.
+#ifndef WIN32
 typedef nspace::hash_map<std::string, BanCacheHit *, nspace::hash<std::string> > BanCacheHash;
+#else
+typedef nspace::hash_map<std::string, BanCacheHit*, nspace::hash_compare<string, less<string> > > BanCacheHash;
+#endif
 
 class CoreExport BanCacheManager : public classbase
 {
@@ -58,6 +62,8 @@ class CoreExport BanCacheManager : public classbase
                this->ServerInstance = Instance;
                this->BanHash = new BanCacheHash();
        }
+
+       void RehashCache();
 };
 
 #endif