summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-25 17:54:44 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-25 17:54:44 +0000
commitc5a1b9632715de9eeb8fbee7add4c5c3fce79d4d (patch)
treeaf3ae11cdb2a6e64795a7c54e6022661d37ddfd0 /src
parente7106c5cbacc3784386672898b946a3e96305be1 (diff)
DIE. DIE YOU FUCKING ASSHAT OF A BUG.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7137 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/cmd_nick.cpp9
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);