diff options
author | Sadie Powell <sadie@witchery.services> | 2020-05-09 04:37:14 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-05-09 04:37:31 +0100 |
commit | 4c94f5d1794ebb398dcfacf20d0b8de9e184299d (patch) | |
tree | ae517ecacf4fea1ec21f727670147bf90970208e /src/coremods | |
parent | e39ea0e3c82727a2df61a47cda22637c7bfb5457 (diff) |
Fix an inverted mode check.
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_info/cmd_commands.cpp | 2 |
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; |