From f4be97d195f206433c1b0a986959e75c01da1b20 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 7 Dec 2006 23:14:23 +0000 Subject: (1) make command reloads be announced to opers (2) change loadmodule and unloadmodule to say WHO did it, like with /reload git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5885 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_loadmodule.cpp | 2 +- src/cmd_unloadmodule.cpp | 2 +- src/command_parse.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cmd_loadmodule.cpp b/src/cmd_loadmodule.cpp index 46c191f69..8c2c424fc 100644 --- a/src/cmd_loadmodule.cpp +++ b/src/cmd_loadmodule.cpp @@ -29,7 +29,7 @@ CmdResult cmd_loadmodule::Handle (const char** parameters, int pcnt, userrec *us { if (ServerInstance->LoadModule(parameters[0])) { - ServerInstance->WriteOpers("*** NEW MODULE: %s",parameters[0]); + ServerInstance->WriteOpers("*** NEW MODULE: %s loaded %s",user->nick, parameters[0]); user->WriteServ("975 %s %s :Module successfully loaded.",user->nick, parameters[0]); return CMD_SUCCESS; } diff --git a/src/cmd_unloadmodule.cpp b/src/cmd_unloadmodule.cpp index ba8e1f99d..f1612fe09 100644 --- a/src/cmd_unloadmodule.cpp +++ b/src/cmd_unloadmodule.cpp @@ -29,7 +29,7 @@ CmdResult cmd_unloadmodule::Handle (const char** parameters, int pcnt, userrec * { if (ServerInstance->UnloadModule(parameters[0])) { - ServerInstance->WriteOpers("*** MODULE UNLOADED: %s",parameters[0]); + ServerInstance->WriteOpers("*** MODULE UNLOADED: %s unloaded %s", user->nick, parameters[0]); user->WriteServ("973 %s %s :Module successfully unloaded.",user->nick, parameters[0]); } else diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 8d1955e7e..52e1d7992 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -581,6 +581,7 @@ CmdResult cmd_reload::Handle(const char** parameters, int pcnt, userrec *user) if (ServerInstance->Parser->ReloadCommand(parameters[0])) { user->WriteServ("NOTICE %s :*** Successfully reloaded command '%s'", user->nick, parameters[0]); + ServerInstance->WriteOpers("*** RELOAD: %s reloaded the '%s' command.", user->nick, parameters[0]); return CMD_SUCCESS; } else -- cgit v1.2.3