summaryrefslogtreecommitdiff
path: root/src/inspircd_io.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/inspircd_io.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/inspircd_io.cpp')
-rw-r--r--src/inspircd_io.cpp9
1 files changed, 8 insertions, 1 deletions
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<std::string> 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)
{