Changeset 4eb75b2 for protocols


Ignore:
Timestamp:
2010-11-20T11:31:39Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6d544a1
Parents:
10685d3
Message:

Sometimes for whatever reasons MSN adds all contacts to both the allow-
and the block list. Working around this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.c

    r10685d3 r4eb75b2  
    872872{
    873873        GSList *l;
     874        int wtf = 0;
    874875       
    875876        for( l = soap_req->ic->bee->users; l; l = l->next )
    876877        {
    877878                struct bee_user *bu = l->data;
     879                struct msn_buddy_data *bd = bu->data;
    878880               
    879881                if( bu->ic == soap_req->ic )
    880882                        msn_buddy_ask( bu );
    881         }
     883               
     884                if( ( bd->flags & ( MSN_BUDDY_AL | MSN_BUDDY_BL ) ) ==
     885                                  ( MSN_BUDDY_AL | MSN_BUDDY_BL ) )
     886                {
     887                        bd->flags &= ~MSN_BUDDY_BL;
     888                        wtf++;
     889                }
     890        }
     891       
     892        if( wtf )
     893                imcb_log( soap_req->ic, "Warning: %d contacts were in both your "
     894                          "block and your allow list. Assuming they're all "
     895                          "allowed. Use the official WLM client once to fix "
     896                          "this.", wtf );
    882897       
    883898        msn_auth_got_contact_list( soap_req->ic );
Note: See TracChangeset for help on using the changeset viewer.