From 82006b868f0fc33cfe8903cdcf854a7f6be9b344 Mon Sep 17 00:00:00 2001 From: Robby- Date: Wed, 2 Oct 2013 00:13:40 +0200 Subject: 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. --- modules/commands/os_oper.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/commands/os_oper.cpp') diff --git a/modules/commands/os_oper.cpp b/modules/commands/os_oper.cpp index bb8c70728..9bc9326fb 100644 --- a/modules/commands/os_oper.cpp +++ b/modules/commands/os_oper.cpp @@ -104,6 +104,9 @@ class CommandOSOper : public Command na->nc->o = new MyOper(na->nc->display, ot); + if (Anope::ReadOnly) + source.Reply(READ_ONLY_MODE); + Log(LOG_ADMIN, source, this) << "ADD " << na->nick << " as type " << ot->GetName(); source.Reply("%s (%s) added to the \002%s\002 list.", na->nick.c_str(), na->nc->display.c_str(), ot->GetName().c_str()); } @@ -124,6 +127,9 @@ class CommandOSOper : public Command delete na->nc->o; na->nc->o = NULL; + if (Anope::ReadOnly) + source.Reply(READ_ONLY_MODE); + Log(LOG_ADMIN, source, this) << "DEL " << na->nick; source.Reply(_("Oper privileges removed from %s (%s)."), na->nick.c_str(), na->nc->display.c_str()); } -- cgit