# HG changeset patch # User Sadrul Habib Chowdhury # Date 1257044523 0 # Node ID 019c8be6b52d7f8bebe76b242d9df958ac69c96b # Parent 7b88cc6c3f7a5121928fa11b78218bf047fc2314 Cannot send a file to a Yahoo! user on MSN. diff -r 7b88cc6c3f7a -r 019c8be6b52d libpurple/protocols/msn/msn.c --- a/libpurple/protocols/msn/msn.c Sun Nov 01 02:56:44 2009 +0000 +++ b/libpurple/protocols/msn/msn.c Sun Nov 01 03:02:03 2009 +0000 @@ -634,9 +634,14 @@ MsnSession *session = gc->proto_data; if (session) { MsnUser *user = msn_userlist_find_user(session->userlist, who); - if (user) + if (user) { /* Include these too: MSN_CLIENT_CAP_MSNMOBILE|MSN_CLIENT_CAP_MSNDIRECT ? */ - ret = (user->clientid & MSN_CLIENT_CAP_WEBMSGR) == 0; + if ((user->clientid & MSN_CLIENT_CAP_WEBMSGR) || + user->networkid == MSN_NETWORK_YAHOO) + ret = FALSE; + else + ret = TRUE; + } } else ret = FALSE; }