From e5ece18ee7804ed81f1b0f80af30a9aea8320522 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 20 Sep 2013 21:07:50 -0400 Subject: Readonlyize many commands --- modules/commands/ns_resetpass.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/commands/ns_resetpass.cpp') diff --git a/modules/commands/ns_resetpass.cpp b/modules/commands/ns_resetpass.cpp index 6af3af0c2..4134155c4 100644 --- a/modules/commands/ns_resetpass.cpp +++ b/modules/commands/ns_resetpass.cpp @@ -76,6 +76,12 @@ class NSResetPass : public Module { if (command->name == "nickserv/confirm" && params.size() > 1) { + if (Anope::ReadOnly) + { + source.Reply(READ_ONLY_MODE); + return EVENT_STOP; + } + NickAlias *na = NickAlias::Find(params[0]); ResetInfo *ri = na ? reset.Get(na->nc) : NULL; -- cgit