cpw.malu.xmpp.jingle_ft: fa26b7b5: Check for the caps for Jingle S5B or Jin...

malu at pidgin.im malu at pidgin.im
Mon Mar 23 20:00:27 EDT 2009


-----------------------------------------------------------------
Revision: fa26b7b5b2b2218df24d577e9c8ae6101bbaa025
Ancestor: 96f312f8e18cd6a117216f707f51c726b0fdc8be
Author: malu at pidgin.im
Date: 2009-03-23T23:57:39
Branch: im.pidgin.cpw.malu.xmpp.jingle_ft
URL: http://d.pidgin.im/viewmtn/revision/info/fa26b7b5b2b2218df24d577e9c8ae6101bbaa025

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

ChangeLog: 

Check for the caps for Jingle S5B or Jingle IBB before attempting to do 
Jingle file transfer

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/xfer.c	a0ae20745f0c54703d356b2551f95fa3a06381c4
+++ libpurple/protocols/jabber/xfer.c	0d70ae7621d5c53b9417bf7c0d674745cbf2d454
@@ -35,8 +35,9 @@ jabber_xfer_support_jingle_ft(const Purp
 
 	jb = jabber_buddy_find(js, who, FALSE);
 	if (jb) {
-		/* should check for s5b or IBB, probably... */
-		return jabber_buddy_has_capability(jb, JINGLE_APP_FT);
+		return jabber_buddy_has_capability(jb, JINGLE_APP_FT) &&
+			(jabber_buddy_has_capability(jb, JINGLE_TRANSPORT_S5B) ||
+			 jabber_buddy_has_capability(jb, JINGLE_TRANSPORT_IBB));
 	} else {
 		return FALSE;
 	}


More information about the Commits mailing list