summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-09-01 09:59:09 +0100
committerSadie Powell <sadie@witchery.services>2020-09-01 10:00:39 +0100
commitbc444b242fabb8ae8b5ca58c2c903b75c02e9756 (patch)
treec6902221333e1b517178116e53103f3963d50f4e /src
parenta8a5308d0f41813dc7c767e154e809d919a937f7 (diff)
Fix OnChangeRealName not being fired for remote users.
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index f6bed6c1d..df21dbeee 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -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;