1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 20:03:14 +02:00

Check for 'hide' flag in commands in (bs,cs,ns)_set HELP

This code is duplicated from help.cpp to (bs,cs,ns)_set.cpp for listing
the available SET commands. The check for the 'hide' flag was missed
and this incorrectly listed commands that were configured as hidden.
This commit is contained in:
genius3000
2018-04-02 04:02:23 -06:00
parent d25722ddd0
commit 7638c7a884
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -41,6 +41,9 @@ class CommandBSSet : public Command
const CommandInfo &info = it->second;
if (c_name.find_ci(this_name + " ") == 0)
{
if (info.hide)
continue;
ServiceReference<Command> command("Command", info.name);
if (command)
{
+3
View File
@@ -43,6 +43,9 @@ class CommandCSSet : public Command
const CommandInfo &info = it->second;
if (c_name.find_ci(this_name + " ") == 0)
{
if (info.hide)
continue;
ServiceReference<Command> c("Command", info.name);
// XXX dup
+3
View File
@@ -42,6 +42,9 @@ class CommandNSSet : public Command
if (c_name.find_ci(this_name + " ") == 0)
{
if (info.hide)
continue;
ServiceReference<Command> c("Command", info.name);
// XXX dup
if (!c)