From: Eric W. <war...@us...> - 2001-09-21 00:57:17
|
Update of /cvsroot/gaim/gaim/src/protocols/oscar In directory usw-pr-cvs1:/tmp/cvs-serv10309/protocols/oscar Modified Files: oscar.c Log Message: hi van Index: oscar.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/oscar/oscar.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- oscar.c 2001/09/20 03:16:43 1.35 +++ oscar.c 2001/09/21 00:57:13 1.36 @@ -1302,7 +1302,7 @@ ir->timestamp = args->iconstamp; } - if (gc->user->iconfile && (args->icbmflags & AIM_IMFLAGS_BUDDYREQ)) { + if (gc->user->iconfile[0] && (args->icbmflags & AIM_IMFLAGS_BUDDYREQ)) { FILE *file; struct stat st; @@ -1311,12 +1311,15 @@ file = fopen(gc->user->iconfile, "r"); if (file) { fread(buf, 1, st.st_size, file); + debug_printf("Sending buddy icon to %d\n", userinfo->sn); aim_send_icon(sess, conn, userinfo->sn, buf, st.st_size, st.st_mtime, aim_iconsum(buf, st.st_size)); fclose(file); - } + } else + debug_printf("Can't open buddy icon file!\n"); g_free(buf); - } + } else + debug_printf("Can't stat buddy icon file!\n"); } /* @@ -2111,7 +2114,7 @@ debug_printf("sending buddy icon request with message\n"); } - if (gc->user->iconfile && !stat(gc->user->iconfile, &st)) { + if (gc->user->iconfile[0] && !stat(gc->user->iconfile, &st)) { FILE *file = fopen(gc->user->iconfile, "r"); if (file) { char *buf = g_malloc(st.st_size); @@ -2122,6 +2125,7 @@ args.iconstamp = st.st_mtime; args.flags |= AIM_IMFLAGS_HASICON; + debug_printf("Claiming to have an icon.\n"); fclose(file); g_free(buf); |