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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user