summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-11-12 17:33:21 +0000
committerPeter Powell <petpow@saberuk.com>2017-11-12 17:33:21 +0000
commitd23c030c9a8fd58807438245a004e4aa5b7288ba (patch)
treed1207d9f811ba486470ac3869052b0bc2180f758 /src/users.cpp
parent2b94e7dcc072d923a3f3e8830dab9b45caaea118 (diff)
parent53d822a7d19aded988ee74eb05437e587cb1ac92 (diff)
Merge tag 'v2.0.25' into master.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index aa5031b2b..397a13267 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -730,8 +730,7 @@ bool User::SetClientIP(const std::string& address, 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));
}