From 8a92502932b844c0e24e57dfdd444b11e93a02aa Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 4 Aug 2009 16:09:30 +0000 Subject: Exit if there were errors reading configuration on startup. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11486 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/configreader.cpp b/src/configreader.cpp index db897b6cc..5ae64f8c3 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1223,7 +1223,14 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) /* No old configuration -> initial boot, nothing more to do here */ if (!old) + { + if (errors) + { + ServerInstance->Exit(EXIT_STATUS_CONFIG); + } + return; + } // If there were errors processing configuration, don't touch modules. if (errors) -- cgit v1.2.3