summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-06 21:47:18 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-06 21:47:18 +0000
commit5750fdaae86e2b1ef4a7ce4db3d02a9d0bf2c2e7 (patch)
tree91329a462cb4dd8e6fbc4a780cbc4723bd79d420 /src
parenta52d0e44f48dbfe4f0de13b3904ef7bbb44a7f54 (diff)
Give feedback to remote users
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10110 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/commands/cmd_rehash.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/commands/cmd_rehash.cpp b/src/commands/cmd_rehash.cpp
index 985d3c530..4d1f4742c 100644
--- a/src/commands/cmd_rehash.cpp
+++ b/src/commands/cmd_rehash.cpp
@@ -43,8 +43,11 @@ CmdResult CommandRehash::Handle (const std::vector<std::string>& parameters, Use
// Rehash for me.
FOREACH_MOD(I_OnRehash,OnRehash(user, ""));
- // XXX write this to a remote user correctly
- user->WriteNumeric(RPL_REHASHING, "%s %s :Rehashing",user->nick.c_str(),ServerConfig::CleanFilename(ServerInstance->ConfigFileName));
+ if (IS_LOCAL(user))
+ user->WriteNumeric(RPL_REHASHING, "%s %s :Rehashing",user->nick.c_str(),ServerConfig::CleanFilename(ServerInstance->ConfigFileName));
+ else
+ ServerInstance->PI->SendUserNotice(user, "*** Rehashing server %s", ServerInstance->ConfigFileName);
+
std::string m = user->nick + " is rehashing config file " + ServerConfig::CleanFilename(ServerInstance->ConfigFileName) + " on " + ServerInstance->Config->ServerName;
ServerInstance->SNO->WriteToSnoMask('A', m);