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/cs_xop.cpp | |
parent | 7bdf592f7ea2d527930ada96d8e07fae966239d4 (diff) |
Made the help command description code more sane
Diffstat (limited to 'modules/core/cs_xop.cpp')
-rw-r--r-- | modules/core/cs_xop.cpp | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/modules/core/cs_xop.cpp b/modules/core/cs_xop.cpp index 0df9713db..066e19471 100644 --- a/modules/core/cs_xop.cpp +++ b/modules/core/cs_xop.cpp @@ -396,8 +396,6 @@ class XOPBase : public Command virtual bool OnHelp(CommandSource &source, const Anope::string &subcommand) = 0; virtual void OnSyntaxError(CommandSource &source, const Anope::string &subcommand) = 0; - - virtual void OnServHelp(CommandSource &source) = 0; }; class CommandCSQOP : public XOPBase @@ -405,6 +403,7 @@ class CommandCSQOP : public XOPBase public: CommandCSQOP() : XOPBase("QOP") { + this->SetDesc("Modify the list of QOP users"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -458,11 +457,6 @@ class CommandCSQOP : public XOPBase { SyntaxError(source, "QOP", _("QOP \037channel\037 {ADD|DEL|LIST|CLEAR} [\037nick\037 | \037entry-list\037]")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" QOP Modify the list of QOP users")); - } }; class CommandCSAOP : public XOPBase @@ -470,6 +464,7 @@ class CommandCSAOP : public XOPBase public: CommandCSAOP() : XOPBase("AOP") { + this->SetDesc("Modify the list of AOP users"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -517,7 +512,6 @@ class CommandCSAOP : public XOPBase "\002%R%s HELP ACCESS\002 for information about the access list,\n" "and \002%R%s HELP SET XOP\002 to know how to toggle between \n" "the access list and xOP list systems."), ChanServ->nick.c_str(), ChanServ->nick.c_str()); - /* CHAN_HELP_HOP */ return true; } @@ -525,11 +519,6 @@ class CommandCSAOP : public XOPBase { SyntaxError(source, "AOP", _("AOP \037channel\037 {ADD|DEL|LIST|CLEAR} [\037nick\037 | \037entry-list\037]")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" AOP Modify the list of AOP users")); - } }; class CommandCSHOP : public XOPBase @@ -537,6 +526,7 @@ class CommandCSHOP : public XOPBase public: CommandCSHOP() : XOPBase("HOP") { + this->SetDesc("Maintains the HOP (HalfOP) list for a channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -589,11 +579,6 @@ class CommandCSHOP : public XOPBase { SyntaxError(source, "HOP", _("HOP \037channel\037 {ADD|DEL|LIST|CLEAR} [\037nick\037 | \037entry-list\037]")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" HOP Maintains the HOP (HalfOP) list for a channel")); - } }; class CommandCSSOP : public XOPBase @@ -601,6 +586,7 @@ class CommandCSSOP : public XOPBase public: CommandCSSOP() : XOPBase("SOP") { + this->SetDesc("Modify the list of SOP users"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -654,11 +640,6 @@ class CommandCSSOP : public XOPBase { SyntaxError(source, "SOP", _("SOP \037channel\037 {ADD|DEL|LIST|CLEAR} [\037nick\037 | \037entry-list\037]")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" SOP Modify the list of SOP users")); - } }; class CommandCSVOP : public XOPBase @@ -666,6 +647,7 @@ class CommandCSVOP : public XOPBase public: CommandCSVOP() : XOPBase("VOP") { + this->SetDesc("Maintains the VOP (VOicePeople) list for a channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -718,11 +700,6 @@ class CommandCSVOP : public XOPBase { SyntaxError(source, "VOP", _("VOP \037channel\037 {ADD|DEL|LIST|CLEAR} [\037nick\037 | \037entry-list\037]")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" VOP Maintains the VOP (VOicePeople) list for a channel")); - } }; class CSXOP : public Module |