diff options
author | Robby- <robby@chat.be> | 2013-09-30 20:40:42 +0200 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-10-05 00:33:02 -0400 |
commit | ba5a3f5f00609a5d82abd9e255dc93ee44d0e8f4 (patch) | |
tree | 4af9c6014a53eec8d218b40e958db73e7273861b /modules/commands/ns_set.cpp | |
parent | 7b6c08b53a3ee5339aeeebd04892d6c9a1de5465 (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/ns_set.cpp')
-rw-r--r-- | modules/commands/ns_set.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp index e561a1524..789b0b9c1 100644 --- a/modules/commands/ns_set.cpp +++ b/modules/commands/ns_set.cpp @@ -261,12 +261,13 @@ class CommandNSSetAutoOp : public Command bool OnHelp(CommandSource &source, const Anope::string &) anope_override { + BotInfo *bi = Config->GetClient("ChanServ"); this->SendSyntax(source); source.Reply(" "); source.Reply(_("Sets whether you will be given your channel status modes automatically.\n" - "Set to \002ON\002 to allow ChanServ to set status modes on you automatically\n" - "when entering channels. Note that depending on channel settings some modes\n" - "may not get set automatically.")); + "Set to \002ON\002 to allow %s to set status modes on you automatically\n" + "when entering channels. Note that depending on channel settings some modes\n" + "may not get set automatically."), bi ? bi->nick.c_str() : "ChanServ"); return true; } }; @@ -287,13 +288,14 @@ class CommandNSSASetAutoOp : public CommandNSSetAutoOp bool OnHelp(CommandSource &source, const Anope::string &) anope_override { + BotInfo *bi = Config->GetClient("ChanServ"); this->SendSyntax(source); source.Reply(" "); source.Reply(_("Sets whether the given nickname will be given its status modes\n" - "in channels automatically. Set to \002ON\002 to allow ChanServ\n" + "in channels automatically. Set to \002ON\002 to allow %s\n" "to set status modes on the given nickname automatically when it\n" "is entering channels. Note that depending on channel settings\n" - "some modes may not get set automatically.")); + "some modes may not get set automatically."), bi ? bi->nick.c_str() : "ChanServ"); return true; } }; |