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 eeb7cf7c5..fc442fa43 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 ccb15661d..d7144b408 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 dc007289e..e7328b198 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)