1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 02:46:38 +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
+9 -1
View File
@@ -64,7 +64,15 @@ Command::~Command()
this->module->DelCommand(this->service, this);
}
void Command::OnServHelp(CommandSource &source) { }
void Command::SetDesc(const Anope::string &d)
{
this->desc = d;
}
void Command::OnServHelp(CommandSource &source)
{
source.Reply(" %-14s %s", this->name.c_str(), _(this->desc.c_str()));
}
bool Command::OnHelp(CommandSource &source, const Anope::string &subcommand) { return false; }