diff options
Diffstat (limited to 'src/cmd_nick.cpp')
-rw-r--r-- | src/cmd_nick.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp index 05fc8420f..4e2ebcf6e 100644 --- a/src/cmd_nick.cpp +++ b/src/cmd_nick.cpp @@ -137,6 +137,15 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user) user->InvalidateCache(); + /* Update display nicks */ + for (UCListIter v = user->chans.begin(); v != user->chans.end(); v++) + { + CUList* ulist = v->first->GetUsers(); + CUList::iterator i = ulist->find(user); + if (i != ulist->end()) + i->second = user->nick; + } + if (user->registered < REG_NICKUSER) { user->registered = (user->registered | REG_NICK); |