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_saset.cpp | |
parent | 7bdf592f7ea2d527930ada96d8e07fae966239d4 (diff) |
Made the help command description code more sane
Diffstat (limited to 'modules/core/ns_saset.cpp')
-rw-r--r-- | modules/core/ns_saset.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/modules/core/ns_saset.cpp b/modules/core/ns_saset.cpp index 8c809b7c4..a484e8b04 100644 --- a/modules/core/ns_saset.cpp +++ b/modules/core/ns_saset.cpp @@ -21,6 +21,7 @@ class CommandNSSASet : public Command public: CommandNSSASet() : Command("SASET", 2, 4) { + this->SetDesc("Set SET-options on another nickname"); } ~CommandNSSASet() @@ -100,11 +101,6 @@ class CommandNSSASet : public Command SyntaxError(source, "SASET", LanguageString::NICK_SASET_SYNTAX); } - void OnServHelp(CommandSource &source) - { - source.Reply(_(" SASET Set SET-options on another nickname")); - } - bool AddSubcommand(Module *creator, Command *c) { c->module = creator; @@ -133,6 +129,7 @@ class CommandNSSASetDisplay : public Command public: CommandNSSASetDisplay() : Command("DISPLAY", 2, 2, "nickserv/saset/display") { + this->SetDesc("Set the display of the group in Services"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -168,11 +165,6 @@ class CommandNSSASetDisplay : public Command // XXX SyntaxError(source, "SASET", LanguageString::NICK_SASET_SYNTAX); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" DISPLAY Set the display of the group in Services")); - } }; class CommandNSSASetPassword : public Command @@ -180,6 +172,7 @@ class CommandNSSASetPassword : public Command public: CommandNSSASetPassword() : Command("PASSWORD", 2, 2, "nickserv/saset/password") { + this->SetDesc("Set the nickname password"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -239,11 +232,6 @@ class CommandNSSASetPassword : public Command { SyntaxError(source, "SASET", LanguageString::NICK_SASET_SYNTAX); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" PASSWORD Set the nickname password")); - } }; class NSSASet : public Module |