1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:04:47 +02:00

Add a default command help implementation.

This commit is contained in:
Sadie Powell
2026-02-25 03:11:10 +00:00
parent 3ea5b078dc
commit 6c86cd108a
+7 -1
View File
@@ -209,7 +209,13 @@ void Command::OnServHelp(CommandSource &source, HelpWrapper &help)
help.AddEntry(source.command, this->GetDesc(source));
}
bool Command::OnHelp(CommandSource &source, const Anope::string &subcommand) { return false; }
bool Command::OnHelp(CommandSource &source, const Anope::string &subcommand)
{
this->SendSyntax(source);
source.Reply(" ");
source.Reply(this->GetDesc(source));
return true;
}
void Command::OnSyntaxError(CommandSource &source, const Anope::string &subcommand)
{