X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcoremods%2Fcore_info%2Fcmd_commands.cpp;h=4e81bbb1b07ef7ea718848524079906a4a7ad6a4;hb=a30a0074edac353cb60e134b43fa8ff0ffb67f8b;hp=162be5243512559a948d451cc1893379e3f582d9;hpb=b4e90c68945c6d5a81da0d6355517f8f940bd5e5;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/coremods/core_info/cmd_commands.cpp b/src/coremods/core_info/cmd_commands.cpp index 162be5243..4e81bbb1b 100644 --- a/src/coremods/core_info/cmd_commands.cpp +++ b/src/coremods/core_info/cmd_commands.cpp @@ -1,7 +1,7 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2013, 2017-2018 Sadie Powell + * Copyright (C) 2013, 2017-2018, 2020 Sadie Powell * Copyright (C) 2012, 2014, 2016 Attila Molnar * Copyright (C) 2012 Robby * Copyright (C) 2009-2010 Daniel De Graaf @@ -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;