summaryrefslogtreecommitdiff
path: root/src/commands/cmd_rehash.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-08 15:05:51 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-08 15:05:51 +0000
commitba713cdc076da4c053b6914ee894609cf3018694 (patch)
tree0b8f44eb48de460a3292f83aef4ea9c6fe9bf899 /src/commands/cmd_rehash.cpp
parent94ab2b6eb5c8d719da0d9b72bc74ee29017d7995 (diff)
Add todo, add server name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9424 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands/cmd_rehash.cpp')
-rw-r--r--src/commands/cmd_rehash.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/commands/cmd_rehash.cpp b/src/commands/cmd_rehash.cpp
index 41b6936f6..cf093552c 100644
--- a/src/commands/cmd_rehash.cpp
+++ b/src/commands/cmd_rehash.cpp
@@ -24,7 +24,6 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance)
CmdResult CommandRehash::Handle (const char* const* parameters, int pcnt, User *user)
{
- user->WriteNumeric(382, "%s %s :Rehashing",user->nick,ServerConfig::CleanFilename(ServerInstance->ConfigFileName));
std::string old_disabled = ServerInstance->Config->DisabledCommands;
ServerInstance->Logs->Log("fuckingrehash", DEBUG, "parc %d p0 %s", pcnt, parameters[0]);
@@ -47,7 +46,10 @@ CmdResult CommandRehash::Handle (const char* const* parameters, int pcnt, User *
// Rehash for me.
FOREACH_MOD(I_OnRehash,OnRehash(user, ""));
- std::string m = std::string(user->nick) + " is rehashing config file " + ServerConfig::CleanFilename(ServerInstance->ConfigFileName);
+ // XXX write this to a remote user correctly
+ user->WriteNumeric(382, "%s %s :Rehashing",user->nick,ServerConfig::CleanFilename(ServerInstance->ConfigFileName));
+
+ std::string m = std::string(user->nick) + " is rehashing config file " + ServerConfig::CleanFilename(ServerInstance->ConfigFileName) + " on " + ServerInstance->Config->ServerName;
ServerInstance->SNO->WriteToSnoMask('A', m);
ServerInstance->PI->SendSNONotice("A", m);
ServerInstance->Logs->CloseLogs();