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/bs_assign.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'modules/commands/bs_assign.cpp') 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()); -- cgit