summaryrefslogtreecommitdiff
path: root/modules/commands/ns_cert.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/ns_cert.cpp
parent8641b995c43593289dc4e66cbf980069b80d6d6b (diff)
Readonlyize many commands
Diffstat (limited to 'modules/commands/ns_cert.cpp')
-rw-r--r--modules/commands/ns_cert.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/commands/ns_cert.cpp b/modules/commands/ns_cert.cpp
index 014a31a0d..fb2901754 100644
--- a/modules/commands/ns_cert.cpp
+++ b/modules/commands/ns_cert.cpp
@@ -279,12 +279,14 @@ class CommandNSCert : public Command
if (source.nc->HasExt("NS_SUSPENDED"))
source.Reply(NICK_X_SUSPENDED, source.nc->display.c_str());
+ else if (cmd.equals_ci("LIST"))
+ return this->DoList(source, nc);
+ else if (Anope::ReadOnly)
+ source.Reply(READ_ONLY_MODE);
else if (cmd.equals_ci("ADD"))
return this->DoAdd(source, nc, mask);
else if (cmd.equals_ci("DEL"))
return this->DoDel(source, nc, mask);
- else if (cmd.equals_ci("LIST"))
- return this->DoList(source, nc);
else
this->OnSyntaxError(source, cmd);
}