From f310e1c98dc262249146025ffffb81334b38680d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 24 Jan 2023 02:58:46 +0000 Subject: Refactor the caching methods in User and rename to make more sense. --- src/modules/m_hostchange.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_hostchange.cpp') 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 -- cgit v1.3.1-10-gc9f91