Skip to content

Commit

Permalink
Use InvalidateCache in the sockaddrs overload of OnSetClientIP.
Browse files Browse the repository at this point in the history
This was done to the string variant in d3b82b2.
  • Loading branch information
SadieCat committed Nov 5, 2017
1 parent 473d990 commit 52de083
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/users.cpp
Expand Up @@ -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));
}

Expand Down

0 comments on commit 52de083

Please sign in to comment.