summaryrefslogtreecommitdiff
path: root/modules/core/ns_set.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/core/ns_set.cpp
parent7bdf592f7ea2d527930ada96d8e07fae966239d4 (diff)
Made the help command description code more sane
Diffstat (limited to 'modules/core/ns_set.cpp')
-rw-r--r--modules/core/ns_set.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/modules/core/ns_set.cpp b/modules/core/ns_set.cpp
index e398868ed..3bd9a0eae 100644
--- a/modules/core/ns_set.cpp
+++ b/modules/core/ns_set.cpp
@@ -21,6 +21,7 @@ class CommandNSSet : public Command
public:
CommandNSSet() : Command("SET", 1, 3)
{
+ this->SetDesc("Set options, including kill protection");
}
~CommandNSSet()
@@ -97,11 +98,6 @@ class CommandNSSet : public Command
SyntaxError(source, "SET", LanguageString::NICK_SET_SYNTAX);
}
- void OnServHelp(CommandSource &source)
- {
- source.Reply(_(" SET Set options, including kill protection"));
- }
-
bool AddSubcommand(Module *creator, Command *c)
{
c->module = creator;
@@ -130,6 +126,7 @@ class CommandNSSetDisplay : public Command
public:
CommandNSSetDisplay() : Command("DISPLAY", 1)
{
+ this->SetDesc("Set the display of your group in Services");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -162,11 +159,6 @@ class CommandNSSetDisplay : public Command
// XXX
SyntaxError(source, "SET", LanguageString::NICK_SET_SYNTAX);
}
-
- void OnServHelp(CommandSource &source)
- {
- source.Reply(_(" DISPLAY Set the display of your group in Services"));
- }
};
class CommandNSSetPassword : public Command
@@ -174,6 +166,7 @@ class CommandNSSetPassword : public Command
public:
CommandNSSetPassword() : Command("PASSWORD", 1)
{
+ this->SetDesc("Set your nickname password");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -224,11 +217,6 @@ class CommandNSSetPassword : public Command
// XXX
SyntaxError(source, "SET", LanguageString::NICK_SET_SYNTAX);
}
-
- void OnServHelp(CommandSource &source)
- {
- source.Reply(_(" PASSWORD Set your nickname password"));
- }
};
class NSSet : public Module