diff options
-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)) { |