diff options
author | Adam <Adam@anope.org> | 2011-02-11 03:12:39 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-02-11 03:12:39 -0500 |
commit | 2529ff6daef7eb387d2fce4c6df5a31029fd5bb2 (patch) | |
tree | 25c4cf0c84bef8b47c3824ba827b3816b8f17221 /modules/core/ns_set_language.cpp | |
parent | 7bdf592f7ea2d527930ada96d8e07fae966239d4 (diff) |
Made the help command description code more sane
Diffstat (limited to 'modules/core/ns_set_language.cpp')
-rw-r--r-- | modules/core/ns_set_language.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/modules/core/ns_set_language.cpp b/modules/core/ns_set_language.cpp index 20ce5f558..58f9a8329 100644 --- a/modules/core/ns_set_language.cpp +++ b/modules/core/ns_set_language.cpp @@ -18,6 +18,7 @@ class CommandNSSetLanguage : public Command public: CommandNSSetLanguage(const Anope::string &spermission = "") : Command("LANGUAGE", 2, 2, spermission) { + this->SetDesc("Set the language Services will use when messaging you"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -75,13 +76,6 @@ class CommandNSSetLanguage : public Command { SyntaxError(source, "SET LANGUAGE", _("SET LANGUAGE \037language\037")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" LANGUAGE Set the language Services will use when\n" - " sending messages to you")); - - } }; class CommandNSSASetLanguage : public CommandNSSetLanguage @@ -106,16 +100,6 @@ class CommandNSSASetLanguage : public CommandNSSetLanguage { SyntaxError(source, "SASET LANGUAGE", _("SASET \037nickname\037 LANGUAGE \037number\037")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_("Syntax: \002SASET \037nickname\037 LANGUAGE \037language\037\002\n" - " \n" - "Changes the language Services uses when sending messages to\n" - "\037nickname\037 (for example, when responding to a command he sends).\n" - "\037language\037 should be chosen from a list of supported languages\n" - "that you can get by typing \002%R%s HELP SET LANGUAGE\002."), NickServ->nick.c_str()); - } }; class NSSetLanguage : public Module |