diff options
author | Peter Powell <petpow@saberuk.com> | 2017-07-12 14:25:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 14:25:28 +0100 |
commit | f471083cd0519d47c7c7a09029813ede41994f7b (patch) | |
tree | 26d756d60526de438b501fd3da71bffe9e551455 /src/users.cpp | |
parent | 2f64744dd81cd956780160e8568a42cf952df6c8 (diff) | |
parent | c0aba5b728b0a921d95ec120aa638dab1520b42f (diff) |
Merge pull request #1337 from SaberUK/master+merge
Merge v2.0.23 and v2.0.24 into master.
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index bdcc9edd0..d54931644 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -588,6 +588,7 @@ void LocalUser::FullConnect() void User::InvalidateCache() { /* Invalidate cache */ + cachedip.clear(); cached_fullhost.clear(); cached_hostip.clear(); cached_makehost.clear(); @@ -709,8 +710,7 @@ irc::sockets::cidr_mask User::GetCIDRMask() bool User::SetClientIP(const char* sip, bool recheck_eline) { - cachedip.clear(); - cached_hostip.clear(); + this->InvalidateCache(); return irc::sockets::aptosa(sip, 0, client_sa); } |