diff options
author | Sadie Powell <sadie@witchery.services> | 2021-02-21 07:51:43 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-02-21 07:51:43 +0000 |
commit | 3204c82068de521da9d73b5a52e1bdf814fb85a4 (patch) | |
tree | 99c47754709f490092fc66a86fcaa4894362bac5 | |
parent | 6f4aee365b5af9a9c6f733be8dbfc3365d15a866 (diff) |
Fix checking the wrong user in SERVLIST.
-rw-r--r-- | src/coremods/core_info/cmd_servlist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_info/cmd_servlist.cpp b/src/coremods/core_info/cmd_servlist.cpp index a6f4101ee..72f656477 100644 --- a/src/coremods/core_info/cmd_servlist.cpp +++ b/src/coremods/core_info/cmd_servlist.cpp @@ -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); |