changeset 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 dd6671b5378c
children 6d277ffb6daa
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Mon Jan 20 03:13:50 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Mon Jan 20 05:09:00 2003 +0000
@@ -216,7 +216,7 @@
 
 	while (d) {
 		m = (struct direct_im *)d->data;
-		if (aim_sncmp(who, m->name))
+		if (!aim_sncmp(who, m->name))
 			return m;
 		d = d->next;
 	}
@@ -2013,6 +2013,13 @@
 
 		od->file_transfers = g_slist_append(od->file_transfers, oft);
 
+		if (*(strrchr(args->info.sendfile.filename, '\\') + 1) == '*' ) {
+			/* last char of the ft req is a star, they are sending us a
+			 * directory -- remove the star and trailing slash so we dont save
+			 * directories that look like 'dirname\*'  -- arl */
+			*strrchr(args->info.sendfile.filename, '\\') = '\0';
+		}
+
 		oft->xfer = transfer_in_add(gc, userinfo->sn, 
 				args->info.sendfile.filename,
 				args->info.sendfile.totsize,