mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
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:
parent
8c6aa61518
commit
8a92502932
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user