]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_info/cmd_commands.cpp
Improve the message sent when overriding channel modes.
[user/henk/code/inspircd.git] / src / coremods / core_info / cmd_commands.cpp
index 162be5243512559a948d451cc1893379e3f582d9..4e81bbb1b07ef7ea718848524079906a4a7ad6a4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2013, 2017-2018 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2013, 2017-2018, 2020 Sadie Powell <sadie@witchery.services>
  *   Copyright (C) 2012, 2014, 2016 Attila Molnar <attilamolnar@hush.com>
  *   Copyright (C) 2012 Robby <robby@chatbelgie.be>
  *   Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
@@ -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;