changeset 12478:8489040cf97b

[gaim-migrate @ 14789] Patch to gaim-devel by Aleksander Piotrowski "Looks like if one sets alias for particular buddy then alias_buddy callback is not called. Following diff fixes that problem for me (verified with jabber and my own protocol plugins) but I'm not sure if it is correct place to call serv_alias_buddy() (as I'm not sure if this whole alias bug isn't only my local problem ;)" committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 13 Dec 2005 23:25:24 +0000
parents d90eae2387b5
children 53e2dc07d9e2
files COPYRIGHT src/gtkblist.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Tue Dec 13 19:47:38 2005 +0000
+++ b/COPYRIGHT	Tue Dec 13 23:25:24 2005 +0000
@@ -179,6 +179,7 @@
 Ted Percival
 Eduardo Pérez
 Joao Luís Marques Pinto
+Aleksander Piotrowski
 Ari Pollak
 Robey Pointer
 Nathan Poznick
--- a/src/gtkblist.c	Tue Dec 13 19:47:38 2005 +0000
+++ b/src/gtkblist.c	Tue Dec 13 23:25:24 2005 +0000
@@ -301,12 +301,17 @@
 				if (contact->alias || gtknode->contact_expanded)
 					gaim_blist_alias_contact(contact, arg2);
 				else
-					gaim_blist_alias_buddy(gaim_contact_get_priority_buddy(contact), arg2);
+				{
+					GaimBuddy *buddy = gaim_contact_get_priority_buddy(contact);
+					gaim_blist_alias_buddy(buddy, arg2);
+					serv_alias_buddy(buddy);
+				}
 			}
 			break;
 
 		case GAIM_BLIST_BUDDY_NODE:
 			gaim_blist_alias_buddy((GaimBuddy*)node, arg2);
+			serv_alias_buddy((GaimBuddy *)node);
 			break;
 		case GAIM_BLIST_GROUP_NODE:
 			gaim_blist_rename_group((GaimGroup*)node, arg2);