summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-06 00:17:30 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-06 00:17:30 +0000
commite407730a6c78740c2e2656783ce338cbc7f17506 (patch)
tree3e81709873bb5983f1d54201b0c2677cc3de7b75 /src
parentba1d7c5dc271b752a1911a7a3c681cc46c8198a8 (diff)
Fix for bug #203 : nicknames not invalidated stil.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6511 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/cmd_nick.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp
index 64b1a4666..0bba6af0d 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -50,10 +50,10 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user)
FOREACH_RESULT(I_OnUserPreNick,OnUserPreNick(user,parameters[0]));
if (MOD_RESULT)
return CMD_FAILURE;
- user->InvalidateCache();
if (user->registered == REG_ALL)
user->WriteCommon("NICK %s",parameters[0]);
strlcpy(user->nick, parameters[0], NICKMAX - 1);
+ user->InvalidateCache();
FOREACH_MOD(I_OnUserPostNick,OnUserPostNick(user,oldnick));
return CMD_SUCCESS;
}
@@ -96,7 +96,7 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user)
}
user->WriteCommon("NICK %s",parameters[0]);
-
+
}
strlcpy(oldnick, user->nick, NICKMAX - 1);