summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-07 23:14:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-07 23:14:23 +0000
commitf4be97d195f206433c1b0a986959e75c01da1b20 (patch)
tree4598e5ade0f4bfcacd3130ff508089d2699c60c7
parent2a80ef7eaf25535c7688d7859bbe5451508dc194 (diff)
(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
-rw-r--r--src/cmd_loadmodule.cpp2
-rw-r--r--src/cmd_unloadmodule.cpp2
-rw-r--r--src/command_parse.cpp1
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