1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 04:06:41 +02:00

Made the help command description code more sane

This commit is contained in:
Adam
2011-02-11 03:12:39 -05:00
parent 7bdf592f7e
commit 2529ff6dae
148 changed files with 215 additions and 939 deletions
+3 -7
View File
@@ -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> &params)
@@ -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)
{
}