summaryrefslogtreecommitdiff
path: root/modules/commands/cs_set.cpp
diff options
context:
space:
mode:
authorRobby- <robby@chat.be>2013-09-30 20:40:42 +0200
committerAdam <Adam@anope.org>2013-10-05 00:33:02 -0400
commitba5a3f5f00609a5d82abd9e255dc93ee44d0e8f4 (patch)
tree4af9c6014a53eec8d218b40e958db73e7273861b /modules/commands/cs_set.cpp
parent7b6c08b53a3ee5339aeeebd04892d6c9a1de5465 (diff)
Don't explicitly reference services nicks.
os_forbid: If NickServ is available, have it send the forbid reason instead of OperServ.
Diffstat (limited to 'modules/commands/cs_set.cpp')
-rw-r--r--modules/commands/cs_set.cpp9
1 files changed, 6 insertions, 3 deletions
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;
}
};