summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index d108a314e..fd71b07ad 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1038,8 +1038,12 @@ bool User::ForceNickChange(const char* newnick)
this->InvalidateCache();
+ this->Extend("NICKForced", "Enabled");
+
FOREACH_RESULT(I_OnUserPreNick,OnUserPreNick(this, newnick));
+ this->Shrink("NICKForced");
+
if (MOD_RESULT)
{
ServerInstance->stats->statsCollisions++;