mirror of
https://github.com/anope/anope.git
synced 2026-06-25 19:56:39 +02:00
Automatically wrap the help output.
This commit is contained in:
+2
-2
@@ -198,9 +198,9 @@ const Anope::string Command::GetDesc(CommandSource &) const
|
||||
return this->desc;
|
||||
}
|
||||
|
||||
void Command::OnServHelp(CommandSource &source)
|
||||
void Command::OnServHelp(CommandSource &source, HelpWrapper &help)
|
||||
{
|
||||
source.Reply(" %-14s %s", source.command.c_str(), Language::Translate(source.nc, this->GetDesc(source).c_str()));
|
||||
help.AddEntry(source.command, this->GetDesc(source));
|
||||
}
|
||||
|
||||
bool Command::OnHelp(CommandSource &source, const Anope::string &subcommand) { return false; }
|
||||
|
||||
Reference in New Issue
Block a user