changeset 10617:927de469483e

[gaim-migrate @ 12081] This is the buglet (feature request?) jwz pointed out the other day which was fixed in oldstatus; if someone does a /nick change on an IRC network and you can see it, any queries with them will automatically track. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Mon, 21 Feb 2005 15:05:59 +0000
parents e874feeb91e3
children 9eb3b224face
files src/protocols/irc/msgs.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c	Mon Feb 21 14:48:52 2005 +0000
+++ b/src/protocols/irc/msgs.c	Mon Feb 21 15:05:59 2005 +0000
@@ -710,6 +710,7 @@
 void irc_msg_nick(struct irc_conn *irc, const char *name, const char *from, char **args)
 {
 	GaimConnection *gc = gaim_account_get_connection(irc->account);
+	GaimConversation *conv;
 	GSList *chats;
 	char *nick = irc_mask_nick(from);
 
@@ -730,6 +731,12 @@
 			gaim_conv_chat_rename_user(chat, nick, args[0]);
 		chats = chats->next;
 	}
+
+	conv = gaim_find_conversation_with_account(GAIM_CONV_IM, nick,
+						   irc->account);
+	if (conv != NULL)
+		gaim_conversation_set_name(conv, args[0]);
+
 	g_free(nick);
 }