From 922cec5bc322c659e5014af82b8083b7ff93d225 Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 31 Jul 2009 21:59:31 +0000 Subject: [PATCH] Rehash message fixes from Ankit, thanks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11447 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 13 ++++++++----- 1 file 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) -- 2.39.5