From 7f764767fae2d809c3e34fc4ecd9350e47dff399 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 30 Jan 2021 19:55:27 +0000 Subject: Fix a shadowing warning in SERVLIST. --- src/coremods/core_info/cmd_servlist.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/coremods/core_info/cmd_servlist.cpp b/src/coremods/core_info/cmd_servlist.cpp index 36a486986..bed520361 100644 --- a/src/coremods/core_info/cmd_servlist.cpp +++ b/src/coremods/core_info/cmd_servlist.cpp @@ -38,19 +38,19 @@ CommandServList::CommandServList(Module* parent) CmdResult CommandServList::HandleLocal(LocalUser* user, const Params& parameters) { const std::string& mask = parameters.empty() ? "*" : parameters[0]; - for (auto* service : ServerInstance->Users.all_services) + for (auto* serviceuser : ServerInstance->Users.all_services) { - if (service->IsModeSet(invisiblemode) || !InspIRCd::Match(service->nick, mask)) + if (serviceuser->IsModeSet(invisiblemode) || !InspIRCd::Match(serviceuser->nick, mask)) continue; Numeric::Numeric numeric(RPL_SERVLIST); numeric - .push(service->nick) - .push(service->server->GetName()) + .push(serviceuser->nick) + .push(serviceuser->server->GetName()) .push(mask) .push(0) .push(0) - .push(service->GetRealName()); + .push(serviceuser->GetRealName()); user->WriteNumeric(numeric); } user->WriteNumeric(RPL_SERVLISTEND, mask, 0, "End of service listing"); -- cgit v1.3.1-10-gc9f91