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