diff options
Diffstat (limited to 'modules/commands/ns_cert.cpp')
-rw-r--r-- | modules/commands/ns_cert.cpp | 6 |
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); } |