]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix checking the wrong user in SERVLIST.
authorSadie Powell <sadie@witchery.services>
Sun, 21 Feb 2021 07:51:43 +0000 (07:51 +0000)
committerSadie Powell <sadie@witchery.services>
Sun, 21 Feb 2021 07:51:43 +0000 (07:51 +0000)
src/coremods/core_info/cmd_servlist.cpp

index a6f4101eec17942d7cdc926c3c22e2e5fbdaee46..72f6564772c3db6dde4ab6e3732a877532533b51 100644 (file)
@@ -45,7 +45,7 @@ CmdResult CommandServList::HandleLocal(LocalUser* user, const Params& parameters
                if (uline->IsModeSet(invisiblemode) || !InspIRCd::Match(uline->nick, mask))
                        continue;
 
-               if (has_type && (!user->IsOper() || !InspIRCd::Match(user->oper->name, parameters[2     ])))
+               if (has_type && (!uline->IsOper() || !InspIRCd::Match(uline->oper->name, parameters[2])))
                        continue;
 
                Numeric::Numeric numeric(RPL_SERVLIST);