summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 14:17:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 14:17:15 +0000
commitd37773215ac095af0cdd1de5299ce854be2d661e (patch)
treed6701e3c31c5816f8fc935ed2a81f5a63ad8e89a /src/modules.cpp
parent7bef53268e05fd6fdff652c37df885b95c946370 (diff)
Moved include stack stuff to be private to ServerConfig
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2410 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 62e84f218..4ff89df0c 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -55,28 +55,23 @@ extern ServerConfig *Config;
extern int MODCOUNT;
extern std::vector<Module*> modules;
extern std::vector<ircd_module*> factory;
-extern std::vector<std::string> include_stack;
extern std::vector<InspSocket*> module_sockets;
extern time_t TIME;
extern int WHOWAS_STALE;
extern int WHOWAS_MAX;
extern time_t startup_time;
-extern std::vector<std::string> module_names;
extern int boundPortCount;
extern int portCount;
extern int ports[MAXSOCKS];
class Server;
-
extern userrec* fd_ref_table[65536];
extern user_hash clientlist;
extern chan_hash chanlist;
extern whowas_hash whowas;
extern command_table cmdlist;
-extern file_cache MOTD;
-extern file_cache RULES;
extern address_cache IP;
ExtModeList EMode;
@@ -738,7 +733,7 @@ Module* Server::FindModule(std::string name)
ConfigReader::ConfigReader()
{
- include_stack.clear();
+ Config->ClearStack();
this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
@@ -758,6 +753,7 @@ ConfigReader::~ConfigReader()
ConfigReader::ConfigReader(std::string filename)
{
+ Config->ClearStack();
this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);