summaryrefslogtreecommitdiff
path: root/modules/extra/hs_request.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-11 03:12:39 -0500
committerAdam <Adam@anope.org>2011-02-11 03:12:39 -0500
commit2529ff6daef7eb387d2fce4c6df5a31029fd5bb2 (patch)
tree25c4cf0c84bef8b47c3824ba827b3816b8f17221 /modules/extra/hs_request.cpp
parent7bdf592f7ea2d527930ada96d8e07fae966239d4 (diff)
Made the help command description code more sane
Diffstat (limited to 'modules/extra/hs_request.cpp')
-rw-r--r--modules/extra/hs_request.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/modules/extra/hs_request.cpp b/modules/extra/hs_request.cpp
index 3a1237328..0dd3e707b 100644
--- a/modules/extra/hs_request.cpp
+++ b/modules/extra/hs_request.cpp
@@ -47,6 +47,7 @@ class CommandHSRequest : public Command
public:
CommandHSRequest() : Command("REQUEST", 1, 1)
{
+ this->SetDesc("Request a vHost for your nick");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -126,11 +127,6 @@ class CommandHSRequest : public Command
{
me->SendMessage(source, _("Syntax: \002REQUEST \037vhost\037\002"));
}
-
- void OnServHelp(CommandSource &source)
- {
- me->SendMessage(source, _(" REQUEST Request a vHost for your nick"));
- }
};
class CommandHSActivate : public Command
@@ -138,6 +134,7 @@ class CommandHSActivate : public Command
public:
CommandHSActivate() : Command("ACTIVATE", 1, 1, "hostserv/set")
{
+ this->SetDesc("Approve the requested vHost of a user");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -187,13 +184,6 @@ class CommandHSActivate : public Command
{
me->SendMessage(source, _("Syntax: \002ACTIVATE \037nick\037\002"));
}
-
- void OnServHelp(CommandSource &source)
- {
- me->SendMessage(source, _(" ACTIVATE Approve the requested vHost of a user\n"
- " REJECT Reject the requested vHost of a user\n"
- " WAITING Convenience command for LIST +req"));
- }
};
class CommandHSReject : public Command
@@ -201,6 +191,7 @@ class CommandHSReject : public Command
public:
CommandHSReject() : Command("REJECT", 1, 2, "hostserv/set")
{
+ this->SetDesc("Reject the requested vHost of a user");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -295,6 +286,7 @@ class CommandHSWaiting : public HSListBase
public:
CommandHSWaiting() : HSListBase("WAITING", 0, 0)
{
+ this->SetDesc("Convenience command for LIST +req");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)