Mercurial > pidgin
diff libpurple/protocols/jabber/jabber.c @ 30225:fa311a0e51c0
jabber: Don't show resources that we know for sure isn't supporting the file
transfer protocols we support in the resource selector when sending a file.
Closes #9791
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Wed, 30 Jun 2010 21:34:43 +0000 |
parents | 07f716427b50 |
children | 116ca888e77d |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Tue Jun 29 19:22:31 2010 +0000 +++ b/libpurple/protocols/jabber/jabber.c Wed Jun 30 21:34:43 2010 +0000 @@ -3440,8 +3440,7 @@ for (iter = jb->resources; iter ; iter = g_list_next(iter)) { JabberBuddyResource *jbr = (JabberBuddyResource *) iter->data; - if (jabber_resource_has_capability(jbr, - "http://jabber.org/protocol/si/profile/file-transfer") + if (jabber_resource_has_capability(jbr, NS_SI_FILE_TRANSFER) && (jabber_resource_has_capability(jbr, NS_BYTESTREAMS) || jabber_resource_has_capability(jbr, NS_IBB))) { @@ -3743,7 +3742,7 @@ jabber_add_feature("http://jabber.org/protocol/muc", 0); jabber_add_feature("http://jabber.org/protocol/muc#user", 0); jabber_add_feature("http://jabber.org/protocol/si", 0); - jabber_add_feature("http://jabber.org/protocol/si/profile/file-transfer", 0); + jabber_add_feature(NS_SI_FILE_TRANSFER, 0); jabber_add_feature(NS_XHTML_IM, 0); jabber_add_feature(NS_PING, 0);