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
This commit is contained in:
w00t 2009-08-04 16:09:30 +00:00
parent 8c6aa61518
commit 8a92502932

View 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)