]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix OnChangeRealName not being fired for remote users.
authorSadie Powell <sadie@witchery.services>
Tue, 1 Sep 2020 08:59:09 +0000 (09:59 +0100)
committerSadie Powell <sadie@witchery.services>
Tue, 1 Sep 2020 09:00:39 +0000 (10:00 +0100)
src/users.cpp

index f6bed6c1d847e832ae27a0e91ec672487b2892f1..df21dbeeed346dcfbdd841f011ca01d607823736 100644 (file)
@@ -1016,8 +1016,8 @@ bool User::ChangeRealName(const std::string& real)
                FIRST_MOD_RESULT(OnPreChangeRealName, MOD_RESULT, (IS_LOCAL(this), real));
                if (MOD_RESULT == MOD_RES_DENY)
                        return false;
-               FOREACH_MOD(OnChangeRealName, (this, real));
        }
+       FOREACH_MOD(OnChangeRealName, (this, real));
        this->realname.assign(real, 0, ServerInstance->Config->Limits.MaxReal);
 
        return true;