From 52de083afcd1608f030551f532bdcdb1f45f1513 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 22 Oct 2017 23:51:15 +0100 Subject: [PATCH] Use InvalidateCache in the sockaddrs overload of OnSetClientIP. This was done to the string variant in d3b82b2f7f. --- src/users.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/users.cpp b/src/users.cpp index 4dbb73a1f5..9e06485e51 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)); }