From e808012628a7aa22e4efafd98c3535e0122e5153 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 5 Aug 2009 00:31:29 +0000 Subject: [PATCH] How about we abort if there were errors, not if there weren't any? Great idea... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11494 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configreader.cpp b/src/configreader.cpp index fd1b041fc..8a2f87eea 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1196,7 +1196,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) User* user = useruid.empty() ? NULL : ServerInstance->FindNick(useruid); - errors = errstr.str().empty(); + errors = !errstr.str().empty(); if (errors) ServerInstance->Logs->Log("CONFIG",DEFAULT, "There were errors in your configuration file:"); -- 2.39.2