diff options
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()); |