diff libpurple/protocols/jabber/buddy.c @ 28911:738cd1adb3cf

jabber: Determine if a buddy can receive a file transfer (when we have received caps for all online caps). This will still allow file transfer to clients that don't advertise caps. Disables the file transfer option for gmail buddies Refs #1507
author Marcus Lundblad <ml@update.uu.se>
date Thu, 12 Nov 2009 23:24:43 +0000
parents fa7f3426ed13
children e14402d6c5e0
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c	Wed Nov 11 05:40:13 2009 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Thu Nov 12 23:24:43 2009 +0000
@@ -2341,6 +2341,12 @@
 }
 
 gboolean
+jabber_resource_know_capabilities(const JabberBuddyResource *jbr)
+{
+	return jbr->caps.info != NULL;
+}
+
+gboolean
 jabber_resource_has_capability(const JabberBuddyResource *jbr, const gchar *cap)
 {
 	const GList *node = NULL;