changeset 4942:6a0b1eb407e5

[gaim-migrate @ 5276] Tabs are now updated when an alias changes. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 01 Apr 2003 06:42:17 +0000
parents d7a549ab95c2
children f0c7d092948d
files src/list.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/list.c	Tue Apr 01 06:09:07 2003 +0000
+++ b/src/list.c	Tue Apr 01 06:42:17 2003 +0000
@@ -163,11 +163,21 @@
 void  gaim_blist_alias_buddy (struct buddy *buddy, const char *alias)
 {
 	struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops;
+	struct gaim_conversation *conv;
+
 	g_free(buddy->alias);
+
 	buddy->alias = g_strdup(alias);
+
 	if (ops)
 		ops->update(gaimbuddylist, (GaimBlistNode*)buddy);
+
+	conv = gaim_find_conversation_with_account(buddy->name, buddy->account);
+
+	if (conv)
+		gaim_conversation_autoset_title(conv);
 }
+
 void gaim_blist_rename_group(struct group *group, const char *name)
 {
 	struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops;