diff options
author | Adam <Adam@anope.org> | 2013-09-20 21:07:50 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-20 21:09:35 -0400 |
commit | e5ece18ee7804ed81f1b0f80af30a9aea8320522 (patch) | |
tree | 11ef551790936e22fb54122441fd152566ed0c17 /modules/commands/bs_assign.cpp | |
parent | 8641b995c43593289dc4e66cbf980069b80d6d6b (diff) |
Readonlyize many commands
Diffstat (limited to 'modules/commands/bs_assign.cpp')
-rw-r--r-- | modules/commands/bs_assign.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/commands/bs_assign.cpp b/modules/commands/bs_assign.cpp index ba925ad80..96e75682f 100644 --- a/modules/commands/bs_assign.cpp +++ b/modules/commands/bs_assign.cpp @@ -27,7 +27,7 @@ class CommandBSAssign : public Command if (Anope::ReadOnly) { - source.Reply(BOT_ASSIGN_READONLY); + source.Reply(_("Sorry, bot assignment is temporarily disabled.")); return; } @@ -95,7 +95,7 @@ class CommandBSUnassign : public Command { if (Anope::ReadOnly) { - source.Reply(BOT_ASSIGN_READONLY); + source.Reply(_("Sorry, bot assignment is temporarily disabled.")); return; } @@ -159,6 +159,12 @@ class CommandBSSetNoBot : public Command ChannelInfo *ci = ChannelInfo::Find(params[0]); const Anope::string &value = params[1]; + if (Anope::ReadOnly) + { + source.Reply(_("Sorry, bot modification is temporarily disabled.")); + return; + } + if (ci == NULL) { source.Reply(CHAN_X_NOT_REGISTERED, params[0].c_str()); |