pidgin.next.minor: 7fae858e: Essentially normalize the username passe...

maiku at pidgin.im maiku at pidgin.im
Tue Oct 20 17:46:52 EDT 2009


-----------------------------------------------------------------
Revision: 7fae858e9f8a91a875299963e391ec2d87c4cfcf
Ancestor: 9bbd55d2626c1060df75a2000851bb474bf02213
Author: maiku at pidgin.im
Date: 2009-10-20T21:38:57
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/7fae858e9f8a91a875299963e391ec2d87c4cfcf

Modified files:
        libpurple/prpl.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/prpl.c	5fb669b670096bc70c6954a6e45e9045299675bd
+++ libpurple/prpl.c	24a357dea2a07c85ae25701bad47038b7f44ffd9
@@ -577,8 +577,9 @@ purple_prpl_got_media_caps(PurpleAccount
 	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;


More information about the Commits mailing list