Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 4355:33e5c088346b
[gaim-migrate @ 4620]
Thanks again to Aubin LaBrosse for a direct IM fix and a file transfer
clean up.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 20 Jan 2003 05:09:00 +0000 |
parents | 539cccfffa46 |
children | 6d277ffb6daa |
comparison
equal
deleted
inserted
replaced
4354:dd6671b5378c | 4355:33e5c088346b |
---|---|
214 GSList *d = od->direct_ims; | 214 GSList *d = od->direct_ims; |
215 struct direct_im *m = NULL; | 215 struct direct_im *m = NULL; |
216 | 216 |
217 while (d) { | 217 while (d) { |
218 m = (struct direct_im *)d->data; | 218 m = (struct direct_im *)d->data; |
219 if (aim_sncmp(who, m->name)) | 219 if (!aim_sncmp(who, m->name)) |
220 return m; | 220 return m; |
221 d = d->next; | 221 d = d->next; |
222 } | 222 } |
223 | 223 |
224 return NULL; | 224 return NULL; |
2011 oft->port = args->port; | 2011 oft->port = args->port; |
2012 memcpy(oft->cookie, args->cookie, 8); | 2012 memcpy(oft->cookie, args->cookie, 8); |
2013 | 2013 |
2014 od->file_transfers = g_slist_append(od->file_transfers, oft); | 2014 od->file_transfers = g_slist_append(od->file_transfers, oft); |
2015 | 2015 |
2016 if (*(strrchr(args->info.sendfile.filename, '\\') + 1) == '*' ) { | |
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 | |
2019 * directories that look like 'dirname\*' -- arl */ | |
2020 *strrchr(args->info.sendfile.filename, '\\') = '\0'; | |
2021 } | |
2022 | |
2016 oft->xfer = transfer_in_add(gc, userinfo->sn, | 2023 oft->xfer = transfer_in_add(gc, userinfo->sn, |
2017 args->info.sendfile.filename, | 2024 args->info.sendfile.filename, |
2018 args->info.sendfile.totsize, | 2025 args->info.sendfile.totsize, |
2019 args->info.sendfile.totfiles, | 2026 args->info.sendfile.totfiles, |
2020 args->msg); | 2027 args->msg); |