changeset 29532:c5712737e59a

Essentially normalize the username passed to purple_prpl_got_media_caps. This fixes when an XMPP resource has media caps and one does not, and the latter's presence is retrieved last.
author maiku@pidgin.im
date Tue, 20 Oct 2009 21:38:57 +0000
parents 33715feb7b8d
children 8a50c08c289d
files libpurple/prpl.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/prpl.c	Tue Oct 20 21:00:23 2009 +0000
+++ b/libpurple/prpl.c	Tue Oct 20 21:38:57 2009 +0000
@@ -577,8 +577,9 @@
 	while (list) {
 		PurpleBuddy *buddy = list->data;
 		PurpleMediaCaps oldcaps = buddy->media_caps;
+		const gchar *bname = purple_buddy_get_name(buddy);
 		list = g_slist_delete_link(list, list);
-		buddy->media_caps = purple_prpl_get_media_caps(account, name);
+		buddy->media_caps = purple_prpl_get_media_caps(account, bname);
 
 		if (oldcaps == buddy->media_caps)
 			continue;