From ba5a3f5f00609a5d82abd9e255dc93ee44d0e8f4 Mon Sep 17 00:00:00 2001 From: Robby- Date: Mon, 30 Sep 2013 20:40:42 +0200 Subject: Don't explicitly reference services nicks. os_forbid: If NickServ is available, have it send the forbid reason instead of OperServ. --- modules/commands/cs_set.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'modules/commands/cs_set.cpp') diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp index c6160d97a..86b874d76 100644 --- a/modules/commands/cs_set.cpp +++ b/modules/commands/cs_set.cpp @@ -573,6 +573,8 @@ class CommandCSSetPersist : public Command bool OnHelp(CommandSource &source, const Anope::string &) anope_override { + BotInfo *BotServ = Config->GetClient("BotServ"); + BotInfo *ChanServ = Config->GetClient("ChanServ"); this->SendSyntax(source); source.Reply(" "); source.Reply(_("Enables or disables the persistent channel setting.\n" @@ -584,8 +586,8 @@ class CommandCSSetPersist : public Command "set persist on, and it can not be unassigned while persist\n" "is on.\n" " \n" - "If this network does not have BotServ enabled and does\n" - "not have a permanent channel mode, ChanServ will\n" + "If this network does not have %s enabled and does\n" + "not have a permanent channel mode, %s will\n" "join your channel when you set persist on (and leave when\n" "it has been set off).\n" " \n" @@ -593,7 +595,8 @@ class CommandCSSetPersist : public Command "and it is set or unset (for any reason, including MODE LOCK),\n" "persist is automatically set and unset for the channel aswell.\n" "Additionally, services will set or unset this mode when you\n" - "set persist on or off.")); + "set persist on or off."), BotServ ? BotServ->nick.c_str() : "BotServ", + ChanServ ? ChanServ->nick.c_str() : "ChanServ"); return true; } }; -- cgit