summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/configreader.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index eb1418590..cbd9049a0 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -1196,14 +1196,17 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid)
{
std::string line;
getline(errstr, line, '\n');
- if (user)
- user->WriteServ("NOTICE %s :*** %s", user->nick.c_str(), line.c_str());
- else
- ServerInstance->SNO->WriteGlobalSno('a', line);
+ if (!line.empty())
+ {
+ if (user)
+ user->WriteServ("NOTICE %s :*** %s", user->nick.c_str(), line.c_str());
+ else
+ ServerInstance->SNO->WriteGlobalSno('a', line);
+ }
}
errstr.clear();
- errstr.str().clear();
+ errstr.str(std::string());
/* No old configuration -> initial boot, nothing more to do here */
if (!old)