# HG changeset patch # User Ethan Blanton # Date 1090777942 0 # Node ID a64febebdd1ef88638c3ffdcbd0669808acb4807 # Parent 9c78aaa4117e7025de70cccdb086417dfcab4721 [gaim-migrate @ 10436] Prevent nick changes from showing up in channels where the user is not present. I think this showed up because the new chatlist stuff doesn't check to see if a user is present before mucking with it ... and this solution is slower than solving it there, but arguably we shouldn't be trying to rename users that don't exist. So now we don't. committer: Tailor Script diff -r 9c78aaa4117e -r a64febebdd1e src/protocols/irc/msgs.c --- a/src/protocols/irc/msgs.c Sun Jul 25 16:19:44 2004 +0000 +++ b/src/protocols/irc/msgs.c Sun Jul 25 17:52:22 2004 +0000 @@ -711,7 +711,9 @@ while (chats) { GaimConvChat *chat = GAIM_CONV_CHAT(chats->data); - gaim_conv_chat_rename_user(chat, nick, args[0]); + /* This is ugly ... */ + if (gaim_conv_chat_find_user(chat, nick)) + gaim_conv_chat_rename_user(chat, nick, args[0]); chats = chats->next; } g_free(nick);