Mercurial > pidgin.yaz
changeset 23654:46da06b6b4ce
Disable sending files to MSN contacts using the web messenger. Not sure
whether Mobile/Direct should be disabled, too?
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 24 Jul 2008 04:15:13 +0000 |
parents | ec227bab07b6 |
children | 8218a2c209f1 |
files | libpurple/protocols/msn/msn.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c Wed Jul 23 05:44:56 2008 +0000 +++ b/libpurple/protocols/msn/msn.c Thu Jul 24 04:15:13 2008 +0000 @@ -582,16 +582,23 @@ { PurpleAccount *account; char *normal; + MsnSession *session; + MsnUser *user; gboolean ret; account = purple_connection_get_account(gc); normal = g_strdup(msn_normalize(account, purple_account_get_username(account))); - ret = strcmp(normal, msn_normalize(account, who)); - g_free(normal); + if (ret) { + session = gc->proto_data; + user = msn_userlist_find_user(session->userlist, who); + ret = (user->clientid & MSN_CLIENT_CAP_WEBMSGR) == 0; + /* Include these too: MSN_CLIENT_CAP_MSNMOBILE|MSN_CLIENT_CAP_MSNDIRECT ? */ + } + return ret; }