aboutsummaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-24 02:58:46 +0000
committerGravatar Sadie Powell2023-01-24 02:58:46 +0000
commitf310e1c98dc262249146025ffffb81334b38680d (patch)
treeedd19152137e71db58efc5fbd289f34ce9b6919b /src/channels.cpp
parentClean up some remaining old format string stuff. (diff)
Refactor the caching methods in User and rename to make more sense.
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp4
1 files changed, 2 insertions, 2 deletions
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;