X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fusers.cpp;h=7a11f22c8900e60a37e9a5c57c0d177ad9527e9c;hb=f0d76147e68e96bfb51226f84f644fefdd2ab565;hp=a99b51c2ce714cd069f30527d39b089063774f3c;hpb=7ba36f5348a6cca1c0da820c60ae17063f3cdad5;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/users.cpp b/src/users.cpp index a99b51c2c..7a11f22c8 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1075,7 +1075,10 @@ void User::ChangeRealHost(const std::string& host, bool resetdisplay) if (!changehost) return; - FOREACH_MOD(OnChangeRealHost, (this, host)); + // Don't call the OnChangeRealHost event when initialising a user. + if (!realhost.empty()) + FOREACH_MOD(OnChangeRealHost, (this, host)); + realhost = host; this->InvalidateCache(); }