aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-06-17 11:04:34 +0100
committerGravatar Sadie Powell2021-06-17 11:10:28 +0100
commite8d302911f88698995659875d6b863f2d0304213 (patch)
tree61d1e42c79f6a885d8380b7c0b84174d02b2c64f /src/users.cpp
parentClean up VerifyCertificate in the ssl_gnutls module. (diff)
Fix xline matching on WebIRC connections.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index afaa22083..02d215b9f 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1076,11 +1076,16 @@ void User::ChangeRealHost(const std::string& host, bool resetdisplay)
return;
// Don't call the OnChangeRealHost event when initialising a user.
- if (!realhost.empty())
+ const bool initializing = realhost.empty();
+ if (!initializing)
FOREACH_MOD(OnChangeRealHost, (this, host));
realhost = host;
this->InvalidateCache();
+
+ // Don't call the OnPostChangeRealHost event when initialising a user.
+ if (!this->quitting && !initializing)
+ FOREACH_MOD(OnPostChangeRealHost, (this));
}
bool User::ChangeIdent(const std::string& newident)