summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/inspircd.h6
-rw-r--r--src/inspircd.cpp2
2 files changed, 8 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index ee1a5120a..008179bab 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -232,6 +232,7 @@ DEFINE_HANDLER1(FloodQuitUserHandler, void, User*);
/* Forward declaration - required */
class XLineManager;
+class BanCacheManager;
/** The main class of the irc server.
* This class contains instances of all the other classes
@@ -401,6 +402,11 @@ class CoreExport InspIRCd : public classbase
*/
ModuleManager* Modules;
+ /** BanCacheManager is used to speed up checking of restrictions on connection
+ * to the IRCd.
+ */
+ BanCacheManager *BanCache;
+
/** Stats class, holds miscellaneous stats counters
*/
serverstats* stats;
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index f62e2a74b..e582a5d6a 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -31,6 +31,7 @@
#include <fstream>
#include "xline.h"
+#include "bancache.h"
#include "socketengine.h"
#include "inspircd_se_config.h"
#include "socket.h"
@@ -327,6 +328,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
this->Config = new ServerConfig(this);
this->SNO = new SnomaskManager(this);
+ this->BanCache = new BanCacheManager(this);
this->Modules = new ModuleManager(this);
this->stats = new serverstats();
this->Timers = new TimerManager(this);