diff options
-rw-r--r-- | src/configreader.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 5ae64f8c3..fd1b041fc 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1196,11 +1196,12 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) User* user = useruid.empty() ? NULL : ServerInstance->FindNick(useruid); + errors = errstr.str().empty(); + if (errors) + ServerInstance->Logs->Log("CONFIG",DEFAULT, "There were errors in your configuration file:"); + while (errstr.good()) { - if (errors == false) - ServerInstance->Logs->Log("CONFIG",DEFAULT, "There were errors in your configuration file:"); - errors = true; // XXX: has to be a nicer way to accomplish this. std::string line; getline(errstr, line, '\n'); if (!line.empty()) |