aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-01-30 19:55:27 +0000
committerGravatar Sadie Powell2021-01-30 19:55:27 +0000
commit7f764767fae2d809c3e34fc4ecd9350e47dff399 (patch)
tree205be58211ee969ad07c48042aa6cda158699d66 /src
parentReplace defaultdeleter with the C++11 one and rename culldeleter. (diff)
Fix a shadowing warning in SERVLIST.
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_info/cmd_servlist.cpp10
1 files changed, 5 insertions, 5 deletions
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");