comparison libpurple/protocols/jabber/si.c @ 28781:6921cc1e704b

Use the jabber_resource_know_capabilities function to determine if a buddy supports entitiy caps when sending a file.
author Marcus Lundblad <ml@update.uu.se>
date Thu, 10 Dec 2009 21:34:37 +0000
parents 166e0fc6bd8e
children 356d1f40a56d
comparison
equal deleted inserted replaced
28780:ff0b7d7aeb5b 28781:6921cc1e704b
1446 who = g_strdup_printf("%s/%s", who_v[0], resource); 1446 who = g_strdup_printf("%s/%s", who_v[0], resource);
1447 g_strfreev(who_v); 1447 g_strfreev(who_v);
1448 g_free(xfer->who); 1448 g_free(xfer->who);
1449 xfer->who = who; 1449 xfer->who = who;
1450 1450
1451 if (jbr && jbr->caps.info) { 1451 if (jbr && jabber_resource_know_capabilities(jbr)) {
1452 char *msg; 1452 char *msg;
1453 1453
1454 if (jabber_resource_has_capability(jbr, NS_IBB)) 1454 if (jabber_resource_has_capability(jbr, NS_IBB))
1455 jsx->stream_method |= STREAM_METHOD_IBB; 1455 jsx->stream_method |= STREAM_METHOD_IBB;
1456 if (jabber_resource_has_capability(jbr, "http://jabber.org/protocol/si/profile/file-transfer")) { 1456 if (jabber_resource_has_capability(jbr, "http://jabber.org/protocol/si/profile/file-transfer")) {