summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/commands/bs_set.cpp3
-rw-r--r--modules/commands/cs_set.cpp3
-rw-r--r--modules/commands/ns_set.cpp3
3 files changed, 9 insertions, 0 deletions
diff --git a/modules/commands/bs_set.cpp b/modules/commands/bs_set.cpp
index f6f005737..ef821ee35 100644
--- a/modules/commands/bs_set.cpp
+++ b/modules/commands/bs_set.cpp
@@ -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)
{
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp
index 657ba86ea..ca79a2a65 100644
--- a/modules/commands/cs_set.cpp
+++ b/modules/commands/cs_set.cpp
@@ -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
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index 4e66a45f1..c4f3f97cb 100644
--- a/modules/commands/ns_set.cpp
+++ b/modules/commands/ns_set.cpp
@@ -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)