Mercurial > pidgin.yaz
changeset 4552:a2f2a717fdf2
[gaim-migrate @ 4832]
Fixed the ack function. DCC receives should work correctly now.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 07 Feb 2003 20:54:14 +0000 |
parents | f61fb41fd1c4 |
children | d03fcb3f4be2 |
files | src/protocols/irc/irc.c |
diffstat | 1 files changed, 1 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/irc/irc.c Fri Feb 07 19:00:47 2003 +0000 +++ b/src/protocols/irc/irc.c Fri Feb 07 20:54:14 2003 +0000 @@ -1263,7 +1263,7 @@ pos = htonl(gaim_xfer_get_bytes_sent(xfer)); - gaim_xfer_write(xfer, (char *)&pos, 4); + write(xfer->fd, (char *)&pos, 4); } static void @@ -1364,33 +1364,6 @@ /* Now perform the request! */ gaim_xfer_request(xfer); - -#if 0 - if (xfer != NULL) { - struct irc_file_transfer *ift; - gaim_xfer_set_read_fnc(xfer, irc_xfer_read); - gaim_xfer_set_cancel_fnc(xfer, irc_xfer_cancel); - - gaim_xfer_set_ack_fnc(xfer, irc_xfer_ack); - - ift = g_new0(struct irc_file_transfer, 1); - - strncpy(ift->ip, send_args[3], sizeof(ift->ip)); - ift->type = IFT_SENDFILE_IN; - ift->sn = g_strdup(nick); - ift->gc = gc; - ift->port = atoi(send_args[4]); - ift->len = atoi(send_args[5]); - ift->name = g_strdup(send_args[2]); - ift->cur = 0; - ift->xfer = xfer; - - xfer->data = ift; - - - gaim_xfer_start(xfer, -1, send_args[3], atoi(send_args[4])); - } -#endif } /*write_to_conv(c, out, WFLAG_SYSTEM, NULL, time(NULL), -1);*/