From 6c86cd108af605367a98d996d9f61d34a9412e2f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 25 Feb 2026 03:11:10 +0000 Subject: [PATCH] Add a default command help implementation. --- src/command.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/command.cpp b/src/command.cpp index 281b8ae78..5e4538b57 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -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) {