gaim/gaim

Parents 0011fc1a249f
Children 57aacaca980b
Track nick changes in private conversations as well as channels -- thanks to Jamie Zawinski for pointing this out
--- a/src/protocols/irc/msgs.c Tue Feb 15 23:38:30 2005 -0500
+++ b/src/protocols/irc/msgs.c Wed Feb 16 14:55:26 2005 -0500
@@ -712,6 +712,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);
@@ -732,6 +733,11 @@
gaim_conv_chat_rename_user(chat, nick, args[0]);
chats = chats->next;
}
+
+ conv = gaim_find_conversation_with_account(nick, irc->account);
+ if (conv != NULL)
+ gaim_conversation_set_name(conv, args[0]);
+
g_free(nick);
}