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_modes.cpp | |
parent | 7bdf592f7ea2d527930ada96d8e07fae966239d4 (diff) |
Made the help command description code more sane
Diffstat (limited to 'modules/core/cs_modes.cpp')
-rw-r--r-- | modules/core/cs_modes.cpp | 60 |
1 files changed, 10 insertions, 50 deletions
diff --git a/modules/core/cs_modes.cpp b/modules/core/cs_modes.cpp index 91748b941..b7ddc3971 100644 --- a/modules/core/cs_modes.cpp +++ b/modules/core/cs_modes.cpp @@ -90,6 +90,7 @@ class CommandCSOp : public CommandModeBase public: CommandCSOp() : CommandModeBase("OP") { + this->SetDesc("Gives Op status to a selected nick on a channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -116,11 +117,6 @@ class CommandCSOp : public CommandModeBase { SyntaxError(source, "OP", _("OP [\037#channel\037] [\037nick\037]\002")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" OP Gives Op status to a selected nick on a channel")); - } }; class CommandCSDeOp : public CommandModeBase @@ -128,6 +124,7 @@ class CommandCSDeOp : public CommandModeBase public: CommandCSDeOp() : CommandModeBase("DEOP") { + this->SetDesc("Deops a selected nick on a channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -154,11 +151,6 @@ class CommandCSDeOp : public CommandModeBase { SyntaxError(source, "DEOP", _("DEOP [\037#channel\037] [\037nick\037]\002")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" DEOP Deops a selected nick on a channel")); - } }; class CommandCSVoice : public CommandModeBase @@ -166,6 +158,7 @@ class CommandCSVoice : public CommandModeBase public: CommandCSVoice() : CommandModeBase("VOICE") { + this->SetDesc("Voices a selected nick on a channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -193,11 +186,6 @@ class CommandCSVoice : public CommandModeBase { SyntaxError(source, "VOICE", _("VOICE [\037#channel\037] [\037nick\037]\002")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" VOICE Voices a selected nick on a channel")); - } }; class CommandCSDeVoice : public CommandModeBase @@ -205,6 +193,7 @@ class CommandCSDeVoice : public CommandModeBase public: CommandCSDeVoice() : CommandModeBase("DEVOICE") { + this->SetDesc("Devoices a selected nick on a channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -232,11 +221,6 @@ class CommandCSDeVoice : public CommandModeBase { SyntaxError(source, "DEVOICE", _("DEVOICE [\037#channel\037] [\037nick\037]\002")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" DEVOICE Devoices a selected nick on a channel")); - } }; class CommandCSHalfOp : public CommandModeBase @@ -244,6 +228,7 @@ class CommandCSHalfOp : public CommandModeBase public: CommandCSHalfOp() : CommandModeBase("HALFOP") { + this->SetDesc("Halfops a selected nick on a channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -273,11 +258,6 @@ class CommandCSHalfOp : public CommandModeBase { SyntaxError(source, "HALFOP", _("HALFOP [\037#channel\037] [\037nick\037]\002")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" HALFOP Halfops a selected nick on a channel")); - } }; class CommandCSDeHalfOp : public CommandModeBase @@ -285,6 +265,7 @@ class CommandCSDeHalfOp : public CommandModeBase public: CommandCSDeHalfOp() : CommandModeBase("DEHALFOP") { + this->SetDesc("Dehalfops a selected nick on a channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -315,11 +296,6 @@ class CommandCSDeHalfOp : public CommandModeBase { SyntaxError(source, "DEHALFOP", _("DEHALFOP [\037#channel\037] [\037nick\037]\002")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" DEHALFOP Dehalfops a selected nick on a channel")); - } }; class CommandCSProtect : public CommandModeBase @@ -327,6 +303,7 @@ class CommandCSProtect : public CommandModeBase public: CommandCSProtect() : CommandModeBase("PROTECT") { + this->SetDesc("Protects a selected nick on a channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -356,11 +333,6 @@ class CommandCSProtect : public CommandModeBase { SyntaxError(source, "PROTECT", _("PROTECT [\037#channel\037] [\037nick\037]\002")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" PROTECT Protects a selected nick on a channel")); - } }; class CommandCSDeProtect : public CommandModeBase @@ -368,6 +340,7 @@ class CommandCSDeProtect : public CommandModeBase public: CommandCSDeProtect() : CommandModeBase("DEPROTECT") { + this->SetDesc("Deprotects a selected nick on a channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -396,11 +369,6 @@ class CommandCSDeProtect : public CommandModeBase { SyntaxError(source, "DEPROTECT", _("DEROTECT [\037#channel\037] [\037nick\037]\002")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" DEPROTECT Deprotects a selected nick on a channel")); - } }; class CommandCSOwner : public CommandModeBase @@ -408,6 +376,7 @@ class CommandCSOwner : public CommandModeBase public: CommandCSOwner() : CommandModeBase("OWNER") { + this->SetDesc("Gives you owner status on channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -436,11 +405,6 @@ class CommandCSOwner : public CommandModeBase { SyntaxError(source, "OWNER", _("OWNER [\037#channel\037] [\037nick\037]\002")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" OWNER Gives you owner status on channel")); - } }; class CommandCSDeOwner : public CommandModeBase @@ -448,6 +412,7 @@ class CommandCSDeOwner : public CommandModeBase public: CommandCSDeOwner() : CommandModeBase("DEOWNER") { + this->SetDesc("Removes your owner status on a channel"); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -476,11 +441,6 @@ class CommandCSDeOwner : public CommandModeBase { SyntaxError(source, "DEOWNER", _("DEOWNER [\037#channel\037] [\037nick\037]\002")); } - - void OnServHelp(CommandSource &source) - { - source.Reply(_(" DEOWNER Removes your owner status on a channel")); - } }; class CSModes : public Module |