summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index c390e3471..2cc26c158 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -975,7 +975,9 @@ bool User::ChangeNick(const std::string& newnick, bool force)
ServerInstance->Users->clientlist->erase(oldnick);
(*(ServerInstance->Users->clientlist))[newnick] = this;
- FOREACH_MOD(I_OnUserPostNick,OnUserPostNick(this,oldnick));
+ if (registered == REG_ALL)
+ FOREACH_MOD(I_OnUserPostNick,OnUserPostNick(this,oldnick));
+
return true;
}