1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +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
@@ -129,13 +129,13 @@ public:
Log() << "rewrite: Unable to rewrite '" << source.command << (!params.empty() ? " " + params[0] : "") << "'";
}
void OnServHelp(CommandSource &source) override
void OnServHelp(CommandSource &source, HelpWrapper &help) override
{
Rewrite *r = Rewrite::Find(!source.c ? source.service->nick : "", source.command);
if (r != NULL && !r->desc.empty())
{
this->SetDesc(r->desc);
Command::OnServHelp(source);
Command::OnServHelp(source, help);
}
}