summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-08 21:32:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-08 21:32:48 +0000
commit424ee85016ca3557b12caf2a3b7b9de9582bd17f (patch)
treeea822997051ec3cbc90a352b59e375e14130ceae
parent61dd3cb1aec8107ed91f064b73df40a8fff2c114 (diff)
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
-rw-r--r--src/configreader.cpp11
1 files 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.");
+ }
}