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:
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user