diff options
author | Robby- <robby@chat.be> | 2013-10-02 00:13:40 +0200 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-10-05 00:33:03 -0400 |
commit | 82006b868f0fc33cfe8903cdcf854a7f6be9b344 (patch) | |
tree | d6c2a3dee62c8ea49ec147babbff616ecbde9b84 /modules/commands/os_info.cpp | |
parent | ba5a3f5f00609a5d82abd9e255dc93ee44d0e8f4 (diff) |
cs_entrymsg: Check for the correct override privilege.
Make some more commands check if Read-Only mode is active.
cs_flags: Show a meaningful message when a user is not found on the access list.
os_set: Add missing capabilities to the readonly help output.
OperServ: Add logging to certain commands.
NickServ: Undo logging for listings.
Diffstat (limited to 'modules/commands/os_info.cpp')
-rw-r--r-- | modules/commands/os_info.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/commands/os_info.cpp b/modules/commands/os_info.cpp index a47999d5e..fb07cd112 100644 --- a/modules/commands/os_info.cpp +++ b/modules/commands/os_info.cpp @@ -163,6 +163,9 @@ class CommandOSInfo : public Command source.Reply(_("Added info to \002%s\002."), target.c_str()); Log(LOG_ADMIN, source, this) << "to add information to " << target; + + if (Anope::ReadOnly) + source.Reply(READ_ONLY_MODE); } else if (cmd.equals_ci("DEL")) { @@ -204,6 +207,9 @@ class CommandOSInfo : public Command source.Reply(_("Deleted info from \002%s\002."), target.c_str()); Log(LOG_ADMIN, source, this) << "to remove information from " << target; + + if (Anope::ReadOnly) + source.Reply(READ_ONLY_MODE); } } else if (cmd.equals_ci("CLEAR")) @@ -220,6 +226,9 @@ class CommandOSInfo : public Command source.Reply(_("Cleared info from \002%s\002."), target.c_str()); Log(LOG_ADMIN, source, this) << "to clear information for " << target; + + if (Anope::ReadOnly) + source.Reply(READ_ONLY_MODE); } else { |