aboutsummaryrefslogtreecommitdiffstats
path: root/src/channels.cpp
diff options
context:
space:
mode:
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;