# HG changeset patch # User Elliott Sales de Andrade # Date 1262383540 0 # Node ID 42b47f88f6e1ca5f7f37533b87aaedae6ddfad1a # Parent 7aef89b92589f3ee47cfc92929adff22a203d7cf Don't bother asking for an authorization message for users that added us to their own buddy list. I don't think they even receive it anyway. diff -r 7aef89b92589 -r 42b47f88f6e1 libpurple/protocols/msn/msn.c --- a/libpurple/protocols/msn/msn.c Fri Jan 01 21:55:01 2010 +0000 +++ b/libpurple/protocols/msn/msn.c Fri Jan 01 22:05:40 2010 +0000 @@ -1543,6 +1543,8 @@ { const char *bname; MsnAddReqData *data; + MsnSession *session; + MsnUser *user; bname = purple_buddy_get_name(buddy); @@ -1564,12 +1566,18 @@ data->buddy = buddy; data->group = group; - purple_request_input(gc, NULL, _("Authorization Request Message:"), - NULL, _("Please authorize me!"), TRUE, FALSE, NULL, - _("_OK"), G_CALLBACK(finish_auth_request), - _("_Cancel"), G_CALLBACK(cancel_auth_request), - purple_connection_get_account(gc), bname, NULL, - data); + session = purple_connection_get_protocol_data(gc); + user = msn_userlist_find_user(session->userlist, bname); + if (user && user->authorized) { + finish_auth_request(data, NULL); + } else { + purple_request_input(gc, NULL, _("Authorization Request Message:"), + NULL, _("Please authorize me!"), TRUE, FALSE, NULL, + _("_OK"), G_CALLBACK(finish_auth_request), + _("_Cancel"), G_CALLBACK(cancel_auth_request), + purple_connection_get_account(gc), bname, NULL, + data); + } } static void