aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands/cmd_rehash.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-08-06 21:47:18 +0000
committerGravatar w00t2008-08-06 21:47:18 +0000
commit5750fdaae86e2b1ef4a7ce4db3d02a9d0bf2c2e7 (patch)
tree91329a462cb4dd8e6fbc4a780cbc4723bd79d420 /src/commands/cmd_rehash.cpp
parentadd missing modules to the vc80 project files (diff)
downloadinspircd++-5750fdaae86e2b1ef4a7ce4db3d02a9d0bf2c2e7.tar.gz
inspircd++-5750fdaae86e2b1ef4a7ce4db3d02a9d0bf2c2e7.tar.bz2
inspircd++-5750fdaae86e2b1ef4a7ce4db3d02a9d0bf2c2e7.zip
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/commands/cmd_rehash.cpp')
-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);