comparison src/protocols/oscar/oscar.c @ 13908:cab785a7c766

[gaim-migrate @ 16404] Fix a small bug in oscar where the "Send File" option in the conversation menu would be greyed out if the buddy is not in your buddy list. Thanks to foo in #gaim for pointing this out, unbeknowest to him. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 02 Jul 2006 23:56:08 +0000
parents eb20e674ccf2
children 5439d91a0b88
comparison
equal deleted inserted replaced
13907:cc60d0861337 13908:cab785a7c766
6160 6160
6161 /* 6161 /*
6162 * Don't allowing sending a file to a user that does not support 6162 * Don't allowing sending a file to a user that does not support
6163 * file transfer, and don't allow sending to ourselves. 6163 * file transfer, and don't allow sending to ourselves.
6164 */ 6164 */
6165 if ((userinfo != NULL) && 6165 if (((userinfo == NULL) ||
6166 (userinfo->capabilities & OSCAR_CAPABILITY_SENDFILE) && 6166 (userinfo->capabilities & OSCAR_CAPABILITY_SENDFILE)) &&
6167 aim_sncmp(who, gaim_account_get_username(account))) 6167 aim_sncmp(who, gaim_account_get_username(account)))
6168 { 6168 {
6169 return TRUE; 6169 return TRUE;
6170 } 6170 }
6171 } 6171 }