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/cs_log.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/commands/cs_log.cpp') diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp index b74b67466..1eca31f85 100644 --- a/modules/commands/cs_log.cpp +++ b/modules/commands/cs_log.cpp @@ -150,6 +150,12 @@ public: } else if (params.size() > 2) { + if (Anope::ReadOnly) + { + source.Reply(READ_ONLY_MODE); + return; + } + LogSettings *ls = ci->Require("logsettings"); const Anope::string &command = params[1]; const Anope::string &method = params[2]; -- cgit