diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-08-04 16:09:30 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-08-04 16:09:30 +0000 |
commit | 8a92502932b844c0e24e57dfdd444b11e93a02aa (patch) | |
tree | 896fc2d43fdbc5c3ef23dc0bfaf500be68ff30d8 | |
parent | 8c6aa615183b76f58cbba251c57f49c2dfd5ccff (diff) |
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
-rw-r--r-- | src/configreader.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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) |