summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2018-06-12 08:39:24 -0400
committerGitHub <noreply@github.com>2018-06-12 08:39:24 -0400
commit32076c099c44b5e9698b3063c6923a5a83494519 (patch)
treedc4006c39441279504a8cc206e6c7251579499ad
parent216b96aa57f27dbfe39687795c1f05f5b221d923 (diff)
parent7638c7a884337f45a5458e786bad640d066671fa (diff)
Merge pull request #219 from genius3000/2.0+set_help_hide
Check for 'hide' flag in commands in (bs,cs,ns)_set HELP
-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)