1
0
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:
Sadie Powell
2025-04-16 01:46:52 +01:00
parent d2aee394ea
commit 74e9a9d2fe
16 changed files with 113 additions and 64 deletions
+2 -2
View File
@@ -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; }