summaryrefslogtreecommitdiff
path: root/src/cmd_nick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_nick.cpp')
-rw-r--r--src/cmd_nick.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp
index d36713029..31f0943e7 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -107,9 +107,9 @@ void cmd_nick::Handle (char **parameters, int pcnt, userrec *user)
FOREACH_RESULT(I_OnUserPreNick,OnUserPreNick(user,parameters[0]));
if (MOD_RESULT)
return;
- strlcpy(user->nick,parameters[0],NICKMAX);
if (user->registered == 7)
WriteCommon(user,"NICK %s",parameters[0]);
+ strlcpy(user->nick,parameters[0],NICKMAX);
FOREACH_MOD(I_OnUserPostNick,OnUserPostNick(user,oldnick));
return;
}