diff options
| author | 2006-12-30 19:52:02 +0000 | |
|---|---|---|
| committer | 2006-12-30 19:52:02 +0000 | |
| commit | a4743b222b5fa099434ecfe78921fc77e267c907 (patch) | |
| tree | 206bda89cd3b2e42fb29e126ca56bfad819564fb /src/cmd_nick.cpp | |
| parent | Fix broken cloaking introduced by last commit (we need to invalidate the cach... (diff) | |
| download | inspircd++-a4743b222b5fa099434ecfe78921fc77e267c907.tar.gz inspircd++-a4743b222b5fa099434ecfe78921fc77e267c907.tar.bz2 inspircd++-a4743b222b5fa099434ecfe78921fc77e267c907.zip | |
Invalidate 'late' here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6182 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_nick.cpp')
| -rw-r--r-- | src/cmd_nick.cpp | 4 |
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) |
