# HG changeset patch # User Mark Doliner # Date 1151884568 0 # Node ID cab785a7c7668237248cd47a065730b471ec6074 # Parent cc60d08613379075991c120c5c98850c45c07527 [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 diff -r cc60d0861337 -r cab785a7c766 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Sun Jul 02 22:13:06 2006 +0000 +++ b/src/protocols/oscar/oscar.c Sun Jul 02 23:56:08 2006 +0000 @@ -6162,8 +6162,8 @@ * Don't allowing sending a file to a user that does not support * file transfer, and don't allow sending to ourselves. */ - if ((userinfo != NULL) && - (userinfo->capabilities & OSCAR_CAPABILITY_SENDFILE) && + if (((userinfo == NULL) || + (userinfo->capabilities & OSCAR_CAPABILITY_SENDFILE)) && aim_sncmp(who, gaim_account_get_username(account))) { return TRUE;