summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-16 15:49:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-16 15:49:57 +0000
commit7254428c00c7f9298eeaddecec4e17d3fd1ecef4 (patch)
tree5caa263d83451255100651bbee7f82d81f03f072
parent7a0c2b695ca5fbb398c6293a53456edeb5af4a8d (diff)
Fixed bug with {} -> [] etc in NICK where nick == newnick apart from irc-case:
[15:41] --- Brain is now known as [Brain] [15:41] --- {Brain} is now known as {Brain} Now correct: [15:41] --- Brain is now known as [Brain] [15:41] --- [Brain] is now known as {Brain} Was just a strlcpy BEFORE the NICK output instead of AFTER. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2814 e03df62e-2008-0410-955e-edbf42e46eb7
-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;
}