1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 11:43:12 +02:00

Automatically wrap the help output.

This commit is contained in:
Sadie Powell
2025-04-16 01:46:52 +01:00
parent d2aee394ea
commit 74e9a9d2fe
16 changed files with 113 additions and 64 deletions
+3 -1
View File
@@ -139,6 +139,7 @@ public:
source.Reply(" ");
source.Reply(_("Configures bot kickers. \037option\037 can be one of:"));
HelpWrapper help;
Anope::string this_name = source.command;
for (const auto &[c_name, info] : source.service->commands)
{
@@ -148,10 +149,11 @@ public:
if (command)
{
source.command = c_name;
command->OnServHelp(source);
command->OnServHelp(source, help);
}
}
}
help.SendTo(source);
source.Reply(_(
"Type \002%s\032\037option\037\002 for more information "