summaryrefslogtreecommitdiff
path: root/src/cmd_nick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_nick.cpp')
-rw-r--r--src/cmd_nick.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp
index 7801a200f..839125faa 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -108,6 +108,9 @@ 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;