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_clone.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/commands/cs_clone.cpp') diff --git a/modules/commands/cs_clone.cpp b/modules/commands/cs_clone.cpp index a1b04d103..c0d33c742 100644 --- a/modules/commands/cs_clone.cpp +++ b/modules/commands/cs_clone.cpp @@ -27,6 +27,12 @@ public: const Anope::string &target = params[1]; Anope::string what = params.size() > 2 ? params[2] : ""; + if (Anope::ReadOnly) + { + source.Reply(READ_ONLY_MODE); + return; + } + User *u = source.GetUser(); ChannelInfo *ci = ChannelInfo::Find(params[0]); if (ci == NULL) -- cgit