summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-30 19:52:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-30 19:52:02 +0000
commita4743b222b5fa099434ecfe78921fc77e267c907 (patch)
tree206bda89cd3b2e42fb29e126ca56bfad819564fb
parentb3ab9c527a511202d956d019312857a57bd887a2 (diff)
Invalidate 'late' here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6182 e03df62e-2008-0410-955e-edbf42e46eb7
-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 839125faa..4b3317a9f 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -109,14 +109,14 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user)
/* change the nick of the user in the users_hash */
user = user->UpdateNickHash(parameters[0]);
- user->InvalidateCache();
-
/* actually change the nick within the record */
if (!user) return CMD_FAILURE;
if (!*user->nick) return CMD_FAILURE;
strlcpy(user->nick, parameters[0], NICKMAX - 1);
+ user->InvalidateCache();
+
ServerInstance->Log(DEBUG,"new nick set: %s",user->nick);
if (user->registered < REG_NICKUSER)