Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 4358:2b8abf7f9cc1
[gaim-migrate @ 4624]
Aubin has the eyes of an Eagle, and the talons of the restaurant place
that Lana Lang runs on Smallville.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 20 Jan 2003 07:00:10 +0000 |
parents | 6d277ffb6daa |
children | 5fb47ec9bfe4 |
comparison
equal
deleted
inserted
replaced
4357:367fc70fe4f7 | 4358:2b8abf7f9cc1 |
---|---|
1939 if (name) | 1939 if (name) |
1940 g_free(name); | 1940 g_free(name); |
1941 } else if (args->reqclass & AIM_CAPS_SENDFILE) { | 1941 } else if (args->reqclass & AIM_CAPS_SENDFILE) { |
1942 struct oscar_file_transfer *oft; | 1942 struct oscar_file_transfer *oft; |
1943 struct oscar_data *od = gc->proto_data; | 1943 struct oscar_data *od = gc->proto_data; |
1944 char *tmp; | |
1944 | 1945 |
1945 if (!args->cookie || !args->verifiedip || !args->port || | 1946 if (!args->cookie || !args->verifiedip || !args->port || |
1946 !args->info.sendfile.filename || !args->info.sendfile.totsize || | 1947 !args->info.sendfile.filename || !args->info.sendfile.totsize || |
1947 !args->info.sendfile.totfiles || !args->reqclass) | 1948 !args->info.sendfile.totfiles || !args->reqclass) |
1948 return 1; | 1949 return 1; |
2011 oft->port = args->port; | 2012 oft->port = args->port; |
2012 memcpy(oft->cookie, args->cookie, 8); | 2013 memcpy(oft->cookie, args->cookie, 8); |
2013 | 2014 |
2014 od->file_transfers = g_slist_append(od->file_transfers, oft); | 2015 od->file_transfers = g_slist_append(od->file_transfers, oft); |
2015 | 2016 |
2016 if (*(strrchr(args->info.sendfile.filename, '\\') + 1) == '*' ) { | 2017 /* last char of the ft req is a star, they are sending us a |
2017 /* last char of the ft req is a star, they are sending us a | 2018 * directory -- remove the star and trailing slash so we dont save |
2018 * directory -- remove the star and trailing slash so we dont save | 2019 * directories that look like 'dirname\*' -- arl */ |
2019 * directories that look like 'dirname\*' -- arl */ | 2020 tmp = strrchr(args->info.sendfile.filename, '\\'); |
2020 *strrchr(args->info.sendfile.filename, '\\') = '\0'; | 2021 if (tmp && (tmp[1] == '*')) { |
2022 tmp[0] = '\0'; | |
2021 } | 2023 } |
2022 | 2024 |
2023 oft->xfer = transfer_in_add(gc, userinfo->sn, | 2025 oft->xfer = transfer_in_add(gc, userinfo->sn, |
2024 args->info.sendfile.filename, | 2026 args->info.sendfile.filename, |
2025 args->info.sendfile.totsize, | 2027 args->info.sendfile.totsize, |