cpw.malu.xmpp.jingle_ft: 4924f1ed: Fix determination of file transfer suppo...

malu at pidgin.im malu at pidgin.im
Tue Jan 5 18:35:45 EST 2010


-----------------------------------------------------------------
Revision: 4924f1ed349faf283040257ccbf305b03ced2b09
Ancestor: c11ba04393ede08ae0b4a5c7c714862548854a9a
Author: malu at pidgin.im
Date: 2010-01-05T23:33:24
Branch: im.pidgin.cpw.malu.xmpp.jingle_ft
URL: http://d.pidgin.im/viewmtn/revision/info/4924f1ed349faf283040257ccbf305b03ced2b09

Modified files:
        libpurple/protocols/jabber/jabber.c

ChangeLog: 

Fix determination of file transfer support for Jingle

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c	522c9c498b491075f3f74d216e19db0bc6e556e6
+++ libpurple/protocols/jabber/jabber.c	ec9fd910994355c931f40d3348b89748f0aae229
@@ -3269,12 +3269,12 @@ gboolean jabber_can_receive_file(PurpleC
 			for (iter = jb->resources; iter ; iter = g_list_next(iter)) {
 				JabberBuddyResource *jbr = (JabberBuddyResource *) iter->data;
 
-				if ((jabber_resource_has_capability(jbr,
+				if (((jabber_resource_has_capability(jbr,
 						"http://jabber.org/protocol/si/profile/file-transfer")
 			    	&& (jabber_resource_has_capability(jbr,
 			    			NS_BYTESTREAMS)
-			        	|| jabber_resource_has_capability(jbr, NS_IBB))
-				    || (jabber_resource_has_capability(jbr, JINGLE_APP_FT)
+			        	|| jabber_resource_has_capability(jbr, NS_IBB))))
+				    || ((jabber_resource_has_capability(jbr, JINGLE_APP_FT)
 				        && (jabber_resource_has_capability(jbr,
 				            	JINGLE_TRANSPORT_S5B)
 				            || jabber_resource_has_capability(jbr,


More information about the Commits mailing list