summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-05-09 04:37:14 +0100
committerSadie Powell <sadie@witchery.services>2020-05-09 04:37:31 +0100
commit4c94f5d1794ebb398dcfacf20d0b8de9e184299d (patch)
treeae517ecacf4fea1ec21f727670147bf90970208e /src
parente39ea0e3c82727a2df61a47cda22637c7bfb5457 (diff)
Fix an inverted mode check.
Diffstat (limited to 'src')
-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;