diff options
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 7396968c4..ebe189fd4 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -167,7 +167,7 @@ void mod_help_cmd(BotInfo *bi, User *u, const ci::string &cmd) ci::string subcommand = tokens.StreamEnd() ? "" : tokens.GetRemaining().c_str(); - if (!c || !c->OnHelp(u, subcommand)) + if (!c || (Config.HidePrivilegedCommands && !c->permission.empty() && (!u->Account() || !u->Account()->HasCommand(c->permission))) || !c->OnHelp(u, subcommand)) notice_lang(bi->nick, u, NO_HELP_AVAILABLE, cmd.c_str()); else { |