]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
How about we abort if there were errors, not if there weren't any? Great idea...
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 5 Aug 2009 00:31:29 +0000 (00:31 +0000)
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 5 Aug 2009 00:31:29 +0000 (00:31 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11494 e03df62e-2008-0410-955e-edbf42e46eb7

src/configreader.cpp

index fd1b041fcf34e93610e60a388adb2f670f2b3ffd..8a2f87eea3b941dc170178879cf8c0b40c77f8b1 100644 (file)
@@ -1196,7 +1196,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid)
 
        User* user = useruid.empty() ? NULL : ServerInstance->FindNick(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:");
 
        if (errors)
                ServerInstance->Logs->Log("CONFIG",DEFAULT, "There were errors in your configuration file:");