From 74e9a9d2feb3690dc06a310e0477cd6f17e25fab Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 16 Apr 2025 01:46:52 +0100 Subject: Automatically wrap the help output. --- src/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command.cpp') diff --git a/src/command.cpp b/src/command.cpp index f307e8aa4..86d96a02e 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -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; } -- cgit