summaryrefslogtreecommitdiff
path: root/modules/chanserv/cs_set.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-16 01:46:52 +0100
committerSadie Powell <sadie@witchery.services>2025-04-16 01:50:59 +0100
commit74e9a9d2feb3690dc06a310e0477cd6f17e25fab (patch)
treebfde58ac0c6babff941b29459b92e89c22cb9d76 /modules/chanserv/cs_set.cpp
parentd2aee394ea5bc91b132001fb5bf2457eec295432 (diff)
Automatically wrap the help output.
Diffstat (limited to 'modules/chanserv/cs_set.cpp')
-rw-r--r--modules/chanserv/cs_set.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/chanserv/cs_set.cpp b/modules/chanserv/cs_set.cpp
index d4325bd8a..d5b7994de 100644
--- a/modules/chanserv/cs_set.cpp
+++ b/modules/chanserv/cs_set.cpp
@@ -39,6 +39,8 @@ public:
Anope::string this_name = source.command;
bool hide_privileged_commands = Config->GetBlock("options").Get<bool>("hideprivilegedcommands"),
hide_registered_commands = Config->GetBlock("options").Get<bool>("hideregisteredcommands");
+
+ HelpWrapper help;
for (const auto &[c_name, info] : source.service->commands)
{
if (c_name.find_ci(this_name + " ") == 0)
@@ -57,9 +59,11 @@ public:
continue;
source.command = c_name;
- c->OnServHelp(source);
+ c->OnServHelp(source, help);
}
}
+ help.SendTo(source);
+
source.Reply(_("Type \002%s\032\037option\037\002 for more information on a particular option."),
source.service->GetQueryCommand("generic/help", this_name).c_str());
return true;