From b119a88b55e7f5f3260ff21e78a5c9d1cf491cc8 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 24 Feb 2008 17:45:21 +0000 Subject: Allow for 'bail' and 'user' parameters to rehash thread git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9022 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 99261120f..12e33ad34 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -799,6 +799,8 @@ void ServerConfig::Read(bool bail, User* user) static char announceinvites[MAXBUF]; /* options:announceinvites setting */ errstr.clear(); + include_stack.clear(); + /* These tags MUST occur and must ONLY occur once in the config file */ static const char* Once[] = { "server", "admin", "files", "power", "options", NULL }; @@ -2156,6 +2158,7 @@ bool DoneELine(ServerConfig* conf, const char* tag) void ConfigReaderThread::Run() { - ServerInstance->Config->Read(true, NULL); + /* TODO: TheUser may be invalid by the time we get here! Check its validity, or pass a UID would be better */ + ServerInstance->Config->Read(do_bail, TheUser); } -- cgit v1.3.1-10-gc9f91