diff options
author | Adam <Adam@anope.org> | 2013-11-18 10:52:28 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-11-18 10:52:28 -0500 |
commit | f6cf978d0c19de062a22615e71723d212eaf65cd (patch) | |
tree | 93ac0dadc79c1c080eb14e40b203178ab687017a | |
parent | aeebaed4b23c2a3a4765759b607c9bae286f95fd (diff) |
Show the correct setting name in /ns help set message
-rw-r--r-- | modules/commands/ns_set.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp index a1e37e15e..7a69e33e0 100644 --- a/modules/commands/ns_set.cpp +++ b/modules/commands/ns_set.cpp @@ -924,11 +924,16 @@ class CommandNSSetMessage : public Command bool OnHelp(CommandSource &source, const Anope::string &) anope_override { + Anope::string cmd = source.command; + size_t i = cmd.find_last_of(' '); + if (i != Anope::string::npos) + cmd = cmd.substr(i + 1); + this->SendSyntax(source); source.Reply(" "); source.Reply(_("Allows you to choose the way Services are communicating with\n" - "you. With \002MSG\002 set, Services will use messages, else they'll\n" - "use notices.")); + "you. With \002%s\002 set, Services will use messages, else they'll\n" + "use notices."), cmd.upper().c_str()); return true; } |