summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/coremods/core_info/cmd_commands.cpp2
1 files changed, 1 insertions, 1 deletions
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;