Mercurial > pidgin
changeset 28464:019c8be6b52d
Cannot send a file to a Yahoo! user on MSN.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 01 Nov 2009 03:02:03 +0000 |
parents | 7b88cc6c3f7a |
children | 99b9c9ee7363 |
files | libpurple/protocols/msn/msn.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; }