Changeset 9b01339 for protocols/msn


Ignore:
Timestamp:
2010-08-15T17:19:06Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e0e1546
Parents:
9679fd8
Message:

Check the <isMessengerUser/> flag in address book entries, ignore the ones
that have it set to false, or this code will add all non-Messenger contacts
to the contact list (oops).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.c

    r9679fd8 r9b01339  
    683683        struct msn_buddy_data *bd;
    684684        struct xt_node *p;
    685         char *id = NULL, *type = NULL, *handle = NULL,
     685        char *id = NULL, *type = NULL, *handle = NULL, *is_msgr = "false",
    686686             *display_name = NULL, *group_id = NULL;
    687687        struct msn_soap_req_data *soap_req = data;
     
    697697        if( ( p = xt_find_node( node->children, "displayName" ) ) )
    698698                display_name = p->text;
     699        if( ( p = xt_find_node( node->children, "isMessengerUser" ) ) )
     700                is_msgr = p->text;
    699701        if( ( p = xt_find_path( node, "groupIds/guid" ) ) )
    700702                group_id = p->text;
     
    709711        }
    710712       
    711         if( handle == NULL )
     713        if( !bool2int( is_msgr ) || handle == NULL )
    712714                return XT_HANDLED;
    713715       
Note: See TracChangeset for help on using the changeset viewer.