From 092c202a5e64852d38b3157c0d8c7b51b866a7f2 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 29 May 2005 15:54:21 +0000 Subject: Added include stack to detect looped includes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1553 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 14b2abb3e..964cd2b74 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -72,6 +72,8 @@ extern int MODCOUNT; extern std::vector modules; extern std::vector factory; +extern std::vector include_stack; + extern time_t TIME; extern int LogLevel; @@ -818,6 +820,7 @@ Module* Server::FindModule(std::string name) ConfigReader::ConfigReader() { + include_stack.clear(); 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); -- cgit v1.3.1-10-gc9f91