summaryrefslogtreecommitdiff
path: root/modules/commands/cs_clone.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/cs_clone.cpp
parent8641b995c43593289dc4e66cbf980069b80d6d6b (diff)
Readonlyize many commands
Diffstat (limited to 'modules/commands/cs_clone.cpp')
-rw-r--r--modules/commands/cs_clone.cpp6
1 files changed, 6 insertions, 0 deletions
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)