diff src/protocols/silc/ft.c @ 9466:d27156c9c876

[gaim-migrate @ 10291] (21:36:44) datallah: anyway... i added "Send File" to the prpl core committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 07 Jul 2004 01:49:39 +0000
parents b8138f3959dc
children 1e9ecca6c97e
line wrap: on
line diff
--- a/src/protocols/silc/ft.c	Wed Jul 07 01:35:27 2004 +0000
+++ b/src/protocols/silc/ft.c	Wed Jul 07 01:49:39 2004 +0000
@@ -345,11 +345,11 @@
 		return;
 	}
 
-	silcgaim_ftp_send_file(client->application, (const char *)context);
+	silcgaim_ftp_send_file(client->application, (const char *)context, NULL);
 	silc_free(context);
 }
 
-void silcgaim_ftp_send_file(GaimConnection *gc, const char *name)
+void silcgaim_ftp_send_file(GaimConnection *gc, const char *name, const char *file)
 {
 	SilcGaim sg = gc->proto_data;
 	SilcClient client = sg->client;
@@ -400,7 +400,10 @@
 	xfer->xfer->data = xfer;
 
 	/* Choose file to send */
-	gaim_xfer_request(xfer->xfer);
+	if (file)
+		gaim_xfer_request_accepted(xfer->xfer, file);
+	else
+		gaim_xfer_request(xfer->xfer);
 
 	silc_free(clients);
 	silc_free(nickname);