diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-07-31 21:59:31 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-07-31 21:59:31 +0000 |
commit | 922cec5bc322c659e5014af82b8083b7ff93d225 (patch) | |
tree | 0e1cb859b2f1306d2d7c7b72bdee5a61fcf4c3f5 | |
parent | e9f2476e65b5aac0fbb74e22b83ce8362adc434c (diff) |
Rehash message fixes from Ankit, thanks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11447 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/configreader.cpp | 13 |
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) |