1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 14:03:15 +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
+10 -6
View File
@@ -200,13 +200,17 @@ public:
source.Reply(_(
"Sets various global services options. Option names "
"currently defined are:"
"\n\n"
" READONLY Set read-only or read-write mode\n"
" DEBUG Activate or deactivate debug mode\n"
" NOEXPIRE Activate or deactivate no expire mode\n"
" SUPERADMIN Activate or deactivate super admin mode\n"
" LIST List the options"
));
HelpWrapper help;
help.AddEntry("READONLY", "Set read-only or read-write mode");
help.AddEntry("DEBUG", "Activate or deactivate debug mode");
help.AddEntry("NOEXPIRE", "Activate or deactivate no expire mode");
help.AddEntry("SUPERADMIN", "Activate or deactivate super admin mode");
help.AddEntry("LIST", "List the options");
source.Reply(" ");
help.SendTo(source);
}
else if (subcommand.equals_ci("LIST"))
{