From 424ee85016ca3557b12caf2a3b7b9de9582bd17f Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 8 Jun 2008 21:32:48 +0000 Subject: Dont announce successful rehash if bail is set to true (e.g. we're booting) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9876 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/configreader.cpp b/src/configreader.cpp index 42a3cd4de..aaff93ef9 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1307,10 +1307,13 @@ void ServerConfig::Read(bool bail, User* user) ServerInstance->Parser->SetupCommandTable(user); ServerInstance->Threads->Mutex(false); - if (user) - user->WriteServ("NOTICE %s :*** Successfully rehashed server.", user->nick.c_str()); - else - ServerInstance->SNO->WriteToSnoMask('A', "*** Successfully rehashed server."); + if (!bail) + { + if (user) + user->WriteServ("NOTICE %s :*** Successfully rehashed server.", user->nick.c_str()); + else + ServerInstance->SNO->WriteToSnoMask('A', "*** Successfully rehashed server."); + } } -- cgit v1.2.3