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/channels.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index aee61bbd5..013f009f7 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -61,7 +61,7 @@ void Channel::SetTopic(User* u, const std::string& ntopic, time_t topicts, const // Always update setter and set time if (!setter) - setter = ServerInstance->Config->FullHostInTopic ? &u->GetFullHost() : &u->nick; + setter = ServerInstance->Config->FullHostInTopic ? &u->GetMask() : &u->nick; this->setby.assign(*setter, 0, ServerInstance->Config->Limits.GetMaxMask()); this->topicset = topicts; @@ -298,7 +298,7 @@ bool Channel::CheckBan(User* user, const std::string& mask) std::string suffix(mask, at + 1); if (InspIRCd::Match(user->GetRealHost(), suffix, nullptr) || InspIRCd::Match(user->GetDisplayedHost(), suffix, nullptr) || - InspIRCd::MatchCIDR(user->GetIPString(), suffix, nullptr)) + InspIRCd::MatchCIDR(user->GetAddress(), suffix, nullptr)) return true; } return false; -- cgit v1.3.1-10-gc9f91