aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-07-17 12:21:04 +0100
committerGravatar Sadie Powell2023-07-17 12:21:04 +0100
commitd82607052564d27aa0d75219f574c47bbf6eb06b (patch)
treeccd5a3301fad693831e5bc900f2667d9a049f286 /src/users.cpp
parentIf a watched user appears whilst away then also send RPL_GONEAWAY. (diff)
Fix a rare case where the hostname cache was not invalidated.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 0c5ab6be3..1780a4c0d 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1082,7 +1082,10 @@ void User::ChangeRealHost(const std::string& host, bool resetdisplay)
// If we are just resetting the display host then we don't need to
// do anything else.
if (!changehost)
+ {
+ InvalidateCache();
return;
+ }
// Don't call the OnChangeRealHost event when initialising a user.
const bool initializing = realhost.empty();