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_hostchange.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_hostchange.cpp')
| -rw-r--r-- | src/modules/m_hostchange.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp index be2956c73..6efab2b20 100644 --- a/src/modules/m_hostchange.cpp +++ b/src/modules/m_hostchange.cpp @@ -106,10 +106,10 @@ public: if (!ports.empty() && !ports.count(user->server_sa.port())) return false; - if (InspIRCd::MatchCIDR(user->MakeHost(), mask)) + if (InspIRCd::MatchCIDR(user->GetRealUserHost(), mask)) return true; - return InspIRCd::MatchCIDR(user->MakeHostIP(), mask); + return InspIRCd::MatchCIDR(user->GetUserAddress(), mask); } void Wrap(const std::string& value, std::string& out) const |
