diff options
author | Peter Powell <petpow@saberuk.com> | 2017-10-22 21:53:24 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-10-28 16:16:10 +0100 |
commit | d865b434865907bfad0a187dd403d4ca8144e469 (patch) | |
tree | 4c36b1028ab02ca8ac2d07b867819f96f38c2745 /src/channels.cpp | |
parent | 08f6f056667df63d1673bea959c73b75393113c6 (diff) |
Hide User#host and User#dhost and use accessors to modify them.
This removes the need to invalidate the cache after changing a
user's hostname.
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index bc23c680a..1edc57693 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -381,8 +381,8 @@ bool Channel::CheckBan(User* user, const std::string& mask) if (InspIRCd::Match(nickIdent, prefix, NULL)) { std::string suffix(mask, at + 1); - if (InspIRCd::Match(user->host, suffix, NULL) || - InspIRCd::Match(user->dhost, suffix, NULL) || + if (InspIRCd::Match(user->GetRealHost(), suffix, NULL) || + InspIRCd::Match(user->GetDisplayedHost(), suffix, NULL) || InspIRCd::MatchCIDR(user->GetIPString(), suffix, NULL)) return true; } |