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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user