From 4c94f5d1794ebb398dcfacf20d0b8de9e184299d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 9 May 2020 04:37:14 +0100 Subject: Fix an inverted mode check. --- src/coremods/core_info/cmd_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coremods/core_info/cmd_commands.cpp b/src/coremods/core_info/cmd_commands.cpp index 162be5243..6bd306997 100644 --- a/src/coremods/core_info/cmd_commands.cpp +++ b/src/coremods/core_info/cmd_commands.cpp @@ -49,7 +49,7 @@ CmdResult CommandCommands::Handle(User* user, const Params& parameters) for (CommandParser::CommandMap::const_iterator i = commands.begin(); i != commands.end(); ++i) { // Don't show privileged commands to users without the privilege. - if (i->second->flags_needed && user->IsModeSet(i->second->flags_needed)) + if (i->second->flags_needed && !user->IsModeSet(i->second->flags_needed)) continue; Module* src = i->second->creator; -- cgit v1.2.3