aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-06-18 15:02:34 +0100
committerGravatar Sadie Powell2021-06-18 15:02:34 +0100
commitb2fde769b6daa6fe062525210d65ae5f1536f4bf (patch)
treee9039e6a3b9a8f3241b71108f4bf2193f4c61b11 /src/users.cpp
parentImport a greatly refactored version of the opmoderated module. (diff)
parentFix some inverted ignoreuntil values in the connectban module. (diff)
Merge branch 'insp3' into master.
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 b24a4d20d..bace2ed32 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1036,11 +1036,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)