summaryrefslogtreecommitdiff
path: root/modules/commands/cs_access.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-09-20 21:07:50 -0400
committerAdam <Adam@anope.org>2013-09-20 21:09:35 -0400
commite5ece18ee7804ed81f1b0f80af30a9aea8320522 (patch)
tree11ef551790936e22fb54122441fd152566ed0c17 /modules/commands/cs_access.cpp
parent8641b995c43593289dc4e66cbf980069b80d6d6b (diff)
Readonlyize many commands
Diffstat (limited to 'modules/commands/cs_access.cpp')
-rw-r--r--modules/commands/cs_access.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp
index ab13b6e7d..0abc5456f 100644
--- a/modules/commands/cs_access.cpp
+++ b/modules/commands/cs_access.cpp
@@ -732,6 +732,8 @@ class CommandCSLevels : public Command
this->OnSyntaxError(source, cmd);
else if (!source.AccessFor(ci).HasPriv("FOUNDER") && !source.HasPriv("chanserv/access/modify"))
source.Reply(ACCESS_DENIED);
+ else if (Anope::ReadOnly && !cmd.equals_ci("LIST"))
+ source.Reply(READ_ONLY_MODE);
else if (cmd.equals_ci("SET"))
this->DoSet(source, ci, params);
else if (cmd.equals_ci("DIS") || cmd.equals_ci("DISABLE"))