From a4743b222b5fa099434ecfe78921fc77e267c907 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 30 Dec 2006 19:52:02 +0000 Subject: Invalidate 'late' here too git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6182 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_nick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3