summaryrefslogtreecommitdiff
path: root/src/core/bs_help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/bs_help.cpp')
-rw-r--r--src/core/bs_help.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/bs_help.cpp b/src/core/bs_help.cpp
index 694318187..7183c6fe9 100644
--- a/src/core/bs_help.cpp
+++ b/src/core/bs_help.cpp
@@ -33,7 +33,8 @@ class CommandBSHelp : public Command
// Abuse syntax error to display general list help.
notice_help(Config.s_BotServ, u, BOT_HELP);
for (CommandMap::const_iterator it = BotServ->Commands.begin(), it_end = BotServ->Commands.end(); it != it_end; ++it)
- it->second->OnServHelp(u);
+ if (!Config.HidePrivilegedCommands || it->second->permission.empty() || (u->Account() && u->Account()->HasCommand(it->second->permission)))
+ it->second->OnServHelp(u);
notice_help(Config.s_BotServ, u, BOT_HELP_FOOTER, Config.BSMinUsers);
}
};