comparison 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
comparison
equal deleted inserted replaced
28910:52eef06b1829 28911:738cd1adb3cf
2339 NULL, NULL, NULL, 2339 NULL, NULL, NULL,
2340 js); 2340 js);
2341 } 2341 }
2342 2342
2343 gboolean 2343 gboolean
2344 jabber_resource_know_capabilities(const JabberBuddyResource *jbr)
2345 {
2346 return jbr->caps.info != NULL;
2347 }
2348
2349 gboolean
2344 jabber_resource_has_capability(const JabberBuddyResource *jbr, const gchar *cap) 2350 jabber_resource_has_capability(const JabberBuddyResource *jbr, const gchar *cap)
2345 { 2351 {
2346 const GList *node = NULL; 2352 const GList *node = NULL;
2347 const JabberCapsNodeExts *exts; 2353 const JabberCapsNodeExts *exts;
2348 2354