diff options
author | Sadie Powell <sadie@witchery.services> | 2025-04-16 01:46:52 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-04-16 01:50:59 +0100 |
commit | 74e9a9d2feb3690dc06a310e0477cd6f17e25fab (patch) | |
tree | bfde58ac0c6babff941b29459b92e89c22cb9d76 /src/command.cpp | |
parent | d2aee394ea5bc91b132001fb5bf2457eec295432 (diff) |
Automatically wrap the help output.
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |