From d37773215ac095af0cdd1de5299ce854be2d661e Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 14:17:15 +0000 Subject: 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 --- src/inspircd_io.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/inspircd_io.cpp') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 24eacb833..8bfa6a77e 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -30,15 +30,17 @@ using namespace std; #include "inspircd_util.h" #include "inspstring.h" #include "helperfuncs.h" +#include "xline.h" extern ServerConfig *Config; extern int boundPortCount; extern int openSockfd[MAXSOCKS]; extern time_t TIME; -std::vector include_stack; + ServerConfig::ServerConfig() { + this->ClearStack(); *ServerName = *Network = *ServerDesc = *AdminName = '\0'; *AdminEmail = *AdminNick = *diepass = *restartpass = '\0'; *motd = *rules = *PrefixQuit = *DieValue = *DNSServer = '\0'; @@ -57,6 +59,11 @@ ServerConfig::ServerConfig() DieDelay = 5; } +ServerConfig::ClearStack() +{ + include_stack.clear(); +} + void ServerConfig::Read(bool bail, userrec* user) { -- cgit v1.2.3