summaryrefslogtreecommitdiff
path: root/modules/commands/cs_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_set.cpp')
-rw-r--r--modules/commands/cs_set.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp
index ccb15661d..ca79a2a65 100644
--- a/modules/commands/cs_set.cpp
+++ b/modules/commands/cs_set.cpp
@@ -1,6 +1,6 @@
/* ChanServ core functions
*
- * (C) 2003-2017 Anope Team
+ * (C) 2003-2018 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
@@ -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