]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Exit if there were errors reading configuration on startup.
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 4 Aug 2009 16:09:30 +0000 (16:09 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 4 Aug 2009 16:09:30 +0000 (16:09 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11486 e03df62e-2008-0410-955e-edbf42e46eb7

src/configreader.cpp

index db897b6cc33430d4f21e96590bb23f1fa7927c30..5ae64f8c3a2b06adfb481a66950210c2a26f0755 100644 (file)
@@ -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)