diff options
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 7 |
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) |
