Changeset 327af51 for protocols


Ignore:
Timestamp:
2010-08-21T17:27:32Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4022b68
Parents:
a366cca
Message:

Some general cleanup, plus fixing a bug in the memberlist parsing code:
the lists can come in in any order, so parse it *completely* before showing
auth requests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.c

    ra366cca r327af51  
    554554                bd->flags |= MSN_BUDDY_BL;
    555555        else if( strcmp( role, "Reverse" ) == 0 )
    556         {
    557556                bd->flags |= MSN_BUDDY_RL;
    558                 msn_buddy_ask( bu );
    559         }
    560557        else if( strcmp( role, "Pending" ) == 0 )
    561         {
    562558                bd->flags |= MSN_BUDDY_PL;
    563                 msn_buddy_ask( bu );
    564         }
    565        
    566         printf( "%s %d\n", handle, bd->flags );
     559       
     560        printf( "%p %s %d\n", bu, handle, bd->flags );
    567561       
    568562        return XT_HANDLED;
     
    783777static int msn_soap_addressbook_handle_response( struct msn_soap_req_data *soap_req )
    784778{
     779        GSList *l;
     780       
     781        for( l = soap_req->ic->bee->users; l; l = l->next )
     782        {
     783                struct bee_user *bu = l->data;
     784               
     785                if( bu->ic == soap_req->ic )
     786                        msn_buddy_ask( bu );
     787        }
     788       
    785789        msn_auth_got_contact_list( soap_req->ic );
     790       
    786791        return MSN_SOAP_OK;
    787792}
Note: See TracChangeset for help on using the changeset viewer.