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/extra/cs_set_misc.cpp | |
parent | 7bdf592f7ea2d527930ada96d8e07fae966239d4 (diff) |
Made the help command description code more sane
Diffstat (limited to 'modules/extra/cs_set_misc.cpp')
-rw-r--r-- | modules/extra/cs_set_misc.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/extra/cs_set_misc.cpp b/modules/extra/cs_set_misc.cpp index e91f32860..301112769 100644 --- a/modules/extra/cs_set_misc.cpp +++ b/modules/extra/cs_set_misc.cpp @@ -16,8 +16,9 @@ class CommandCSSetMisc : public Command { Anope::string Desc; public: - CommandCSSetMisc(const Anope::string &cname, const Anope::string &desc, const Anope::string &cpermission = "") : Command(cname, 1, 2, cpermission), Desc(desc) + CommandCSSetMisc(const Anope::string &cname, const Anope::string &cdesc, const Anope::string &cpermission = "") : Command(cname, 1, 2, cpermission), Desc(cdesc) { + this->SetDesc(cdesc); } CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) @@ -43,17 +44,12 @@ class CommandCSSetMisc : public Command { SyntaxError(source, "SET", LanguageString::CHAN_SET_SYNTAX); } - - void OnServHelp(CommandSource &source) - { - source.Reply(" %-10s %s", this->name.c_str(), this->Desc.c_str()); - } }; class CommandCSSASetMisc : public CommandCSSetMisc { public: - CommandCSSASetMisc(const Anope::string &cname, const Anope::string &desc) : CommandCSSetMisc(cname, desc, "chanserv/saset/" + cname) + CommandCSSASetMisc(const Anope::string &cname, const Anope::string &cdesc) : CommandCSSetMisc(cname, cdesc, "chanserv/saset/" + cname) { } |