diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 14:05:21 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 14:05:21 +0000 |
commit | 7bef53268e05fd6fdff652c37df885b95c946370 (patch) | |
tree | 016fbc71d8a658f6451e06ded2239e4f0e5ff2d6 | |
parent | 14c612eef9aeb4610d45e7a7f59eb19ce5cb4ab4 (diff) |
Moved classes out of inspircd.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2409 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/inspircd_io.h | 1 | ||||
-rw-r--r-- | src/inspircd.cpp | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/inspircd_io.h b/include/inspircd_io.h index c067de059..b5993d8af 100644 --- a/include/inspircd_io.h +++ b/include/inspircd_io.h @@ -66,6 +66,7 @@ class ServerConfig file_cache RULES; char PID[1024]; std::stringstream config_f; + ClassVector Classes; ServerConfig(); void Read(bool bail, userrec* user); diff --git a/src/inspircd.cpp b/src/inspircd.cpp index b0fbed667..577b348e2 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -101,7 +101,6 @@ whowas_hash whowas; command_table cmdlist; address_cache IP; -ClassVector Classes; servernamelist servernames; int boundPortCount = 0; @@ -1072,7 +1071,7 @@ void AddClient(int socket, char* host, int port, bool iscached, char* ip) long class_sqmax = 262144; // 256kb long class_rqmax = 4096; // 4k - for (ClassVector::iterator i = Classes.begin(); i != Classes.end(); i++) + for (ClassVector::iterator i = Config->Classes.begin(); i != Config->Classes.end(); i++) { if (match(clientlist[tempnick]->host,i->host) && (i->type == CC_ALLOW)) { |