From a977b7ad09b270263c2325b16cafaba6d6746a70 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 3 Aug 2024 23:06:33 +0100 Subject: [PATCH] Fix a shadowing warning in the clientcheck module. --- 4/m_clientcheck.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/4/m_clientcheck.cpp b/4/m_clientcheck.cpp index 86504405..803bc57c 100644 --- a/4/m_clientcheck.cpp +++ b/4/m_clientcheck.cpp @@ -144,10 +144,10 @@ class ModuleClientCheck final size_t msgsize = parameters[1].size(); size_t lastpos = msgsize - (parameters[1][msgsize - 1] == '\x1' ? 9 : 10); - const std::string version = parameters[1].substr(9, lastpos); + const std::string versionstr = parameters[1].substr(9, lastpos); for (const auto& ci : clients) { - if (!ci.pattern->Matches(version)) + if (!ci.pattern->Matches(versionstr)) continue; switch (ci.action)