# HG changeset patch # User maiku@pidgin.im # Date 1256074737 0 # Node ID c5712737e59a22d3efd6ca01478e0b93fe57ede4 # Parent 33715feb7b8d5d477ce648c24d76dcafe095e2d9 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. diff -r 33715feb7b8d -r c5712737e59a libpurple/prpl.c --- 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;