diff src/protocols/jabber/buddy.c @ 7425:85cd2e71bff7

[gaim-migrate @ 8028] syncing my jabber changes, and disabling the half-implemented file sending stuff. I don't want that sneaking into a release. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 04 Nov 2003 19:18:38 +0000
parents b250288fa948
children 6ea4a49b4b51
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c	Tue Nov 04 01:34:46 2003 +0000
+++ b/src/protocols/jabber/buddy.c	Tue Nov 04 19:18:38 2003 +0000
@@ -895,25 +895,18 @@
 	struct proto_buddy_menu *pbm;
 	JabberStream *js = gc->proto_data;
 	JabberBuddy *jb = jabber_buddy_find(js, name, TRUE);
-	GList *resources;
-	gboolean has_file_xfer = FALSE;
 
 	if(!jb)
 		return m;
 
-	for(resources = jb->resources; resources; resources = resources->next) {
-		JabberBuddyResource *jbr = resources->data;
-		if(jbr->capabilities & JABBER_CAP_SI_FILE_XFER)
-			has_file_xfer = TRUE;
-	}
+	/* XXX: should check capability once we know we want to send
+	pbm = g_new0(struct proto_buddy_menu, 1);
+	pbm->label = _("Send File");
+	pbm->callback = jabber_buddy_ask_send_file;
+	pbm->gc = gc;
+	m = g_list_append(m, pbm);
 
-	if(has_file_xfer) {
-		pbm = g_new0(struct proto_buddy_menu, 1);
-		pbm->label = _("Send File");
-		pbm->callback = jabber_buddy_ask_send_file;
-		pbm->gc = gc;
-		m = g_list_append(m, pbm);
-	}
+	*/
 
 	pbm = g_new0(struct proto_buddy_menu, 1);
 	if(jb->invisible & JABBER_INVIS_BUDDY) {