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/ns_set.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules/commands/ns_set.cpp') 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; } }; -- cgit