Use the jabber_resource_know_capabilities function to determine if a buddy

Thu, 10 Dec 2009 21:34:37 +0000

author
Marcus Lundblad <malu@pidgin.im>
date
Thu, 10 Dec 2009 21:34:37 +0000
changeset 29118
8d6805679729
parent 29116
7ede72cae656
child 29119
d6534cf450af
child 29120
af008d7e2ba1
child 29471
faac2ea3e3ec

Use the jabber_resource_know_capabilities function to determine if a buddy
supports entitiy caps when sending a file.

libpurple/protocols/jabber/si.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/jabber/si.c	Thu Dec 10 05:40:59 2009 +0000
+++ b/libpurple/protocols/jabber/si.c	Thu Dec 10 21:34:37 2009 +0000
@@ -1448,7 +1448,7 @@
 	g_free(xfer->who);
 	xfer->who = who;
 
-	if (jbr && jbr->caps.info) {
+	if (jbr && jabber_resource_know_capabilities(jbr)) {
 		char *msg;
 
 		if (jabber_resource_has_capability(jbr, NS_IBB))

mercurial