summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 13:23:15 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 13:23:15 +0000
commit9f936a78301ebc7e42c0879101fe20599285b84c (patch)
tree2a89ce08e4c98ebf708adaf386739e3cdc8d8d5d
parentcce3669a3a6c2011f202795c6333db77009cedd7 (diff)
Instantiate BanCache in InspIRCd class.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8491 e03df62e-2008-0410-955e-edbf42e46eb7
-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);