1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Don't explicitly reference services nicks.

os_forbid: If NickServ is available, have it send the forbid reason instead of OperServ.
This commit is contained in:
Robby-
2013-09-30 20:40:42 +02:00
committed by Adam
parent 7b6c08b53a
commit ba5a3f5f00
6 changed files with 31 additions and 21 deletions
+6 -3
View File
@@ -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;
}
};