]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Use InvalidateCache in the sockaddrs overload of OnSetClientIP.
authorPeter Powell <petpow@saberuk.com>
Sun, 22 Oct 2017 22:51:15 +0000 (23:51 +0100)
committerPeter Powell <petpow@saberuk.com>
Sun, 5 Nov 2017 23:05:24 +0000 (23:05 +0000)
This was done to the string variant in d3b82b2f7f.

src/users.cpp

index 4dbb73a1f55ef7e4e5492784d1165d283c832c53..9e06485e5182c6a1ed511a152e7510438261790a 100644 (file)
@@ -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));
 }