summaryrefslogtreecommitdiff
path: root/modules/commands/ns_set.cpp
diff options
context:
space:
mode:
authorRobby- <robby@chat.be>2013-10-02 00:13:40 +0200
committerAdam <Adam@anope.org>2013-10-05 00:33:03 -0400
commit82006b868f0fc33cfe8903cdcf854a7f6be9b344 (patch)
treed6c2a3dee62c8ea49ec147babbff616ecbde9b84 /modules/commands/ns_set.cpp
parentba5a3f5f00609a5d82abd9e255dc93ee44d0e8f4 (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/ns_set.cpp')
-rw-r--r--modules/commands/ns_set.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index 789b0b9c1..deaec6c62 100644
--- a/modules/commands/ns_set.cpp
+++ b/modules/commands/ns_set.cpp
@@ -163,6 +163,12 @@ class CommandNSSASetPassword : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
+ if (Anope::ReadOnly)
+ {
+ source.Reply(READ_ONLY_MODE);
+ return;
+ }
+
const NickAlias *setter_na = NickAlias::Find(params[0]);
if (setter_na == NULL)
{
@@ -1057,6 +1063,12 @@ class CommandNSSASetNoexpire : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
+ if (Anope::ReadOnly)
+ {
+ source.Reply(READ_ONLY_MODE);
+ return;
+ }
+
NickAlias *na = NickAlias::Find(params[0]);
if (na == NULL)
{