From ba713cdc076da4c053b6914ee894609cf3018694 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 8 Apr 2008 15:05:51 +0000 Subject: Add todo, add server name git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9424 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_rehash.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/commands/cmd_rehash.cpp') 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(); -- cgit v1.2.3