diff options
author | Peter Powell <petpow@saberuk.com> | 2017-10-22 23:51:15 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-11-05 23:05:24 +0000 |
commit | 52de083afcd1608f030551f532bdcdb1f45f1513 (patch) | |
tree | 2b16dc26650b713f06b47dafd744574f7078c729 | |
parent | 473d990d6223723c60551d183ea0d7300c8af8df (diff) |
Use InvalidateCache in the sockaddrs overload of OnSetClientIP.
This was done to the string variant in d3b82b2f7f.
-rw-r--r-- | src/users.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index 4dbb73a1f..9e06485e5 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1008,8 +1008,7 @@ bool User::SetClientIP(const char* sip, bool recheck_eline) void User::SetClientIP(const irc::sockets::sockaddrs& sa, bool recheck_eline) { - cachedip.clear(); - cached_hostip.clear(); + this->InvalidateCache(); memcpy(&client_sa, &sa, sizeof(irc::sockets::sockaddrs)); } |