From e8d302911f88698995659875d6b863f2d0304213 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 17 Jun 2021 11:04:34 +0100 Subject: Fix xline matching on WebIRC connections. --- src/users.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/users.cpp') 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) -- cgit v1.3.1-10-gc9f91