changeset 9593:a64febebdd1e

[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 <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Sun, 25 Jul 2004 17:52:22 +0000
parents 9c78aaa4117e
children 15d09e546cee
files src/protocols/irc/msgs.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);