summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-04 16:09:30 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-04 16:09:30 +0000
commit8a92502932b844c0e24e57dfdd444b11e93a02aa (patch)
tree896fc2d43fdbc5c3ef23dc0bfaf500be68ff30d8 /src
parent8c6aa615183b76f58cbba251c57f49c2dfd5ccff (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
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp7
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)