Skip to content

Commit

Permalink
Fix a shadowing warning in the clientcheck module.
Browse files Browse the repository at this point in the history
  • Loading branch information
SadieCat committed Aug 3, 2024
1 parent 863c3b3 commit a977b7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 4/m_clientcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a977b7a

Please sign in to comment.