diff options
| author | 2023-01-24 02:58:46 +0000 | |
|---|---|---|
| committer | 2023-01-24 02:58:46 +0000 | |
| commit | f310e1c98dc262249146025ffffb81334b38680d (patch) | |
| tree | edd19152137e71db58efc5fbd289f34ce9b6919b /src/modules/m_tline.cpp | |
| parent | Clean up some remaining old format string stuff. (diff) | |
Refactor the caching methods in User and rename to make more sense.
Diffstat (limited to 'src/modules/m_tline.cpp')
| -rw-r--r-- | src/modules/m_tline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp index 52bb3cec4..3dd38bf89 100644 --- a/src/modules/m_tline.cpp +++ b/src/modules/m_tline.cpp @@ -44,14 +44,14 @@ public: for (const auto& [_, u] : ServerInstance->Users.GetUsers()) { - if (InspIRCd::Match(u->GetFullRealHost(), parameters[0])) + if (InspIRCd::Match(u->GetRealMask(), parameters[0])) { n_matched++; n_match_host++; } else { - if (InspIRCd::MatchCIDR(u->MakeHostIP(), parameters[0])) + if (InspIRCd::MatchCIDR(u->GetUserAddress(), parameters[0])) { n_matched++; n_match_ip++; |
