Ignore:
Timestamp:
2010-08-18T19:21:44Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
f2520b5
Parents:
e0e1546
Message:

Fetch the user's profile to see if there's a display name set there. If
there is, the one in the address book should be ignored. No support for
changing the profile yet though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    re0e1546 r80175a1  
    8383        struct msn_data *md = ic->proto_data;
    8484        GSList *l;
     85        int i;
    8586       
    8687        if( md )
     
    107108                msn_msgq_purge( ic, &md->msgq );
    108109               
    109                 g_free( md->tokens[0] );
    110                 g_free( md->tokens[1] );
    111                 g_free( md->tokens[2] );
     110                for( i = 0; i < sizeof( md->tokens ) / sizeof( md->tokens[0] ); i ++ )
     111                        g_free( md->tokens[i] );
    112112                g_free( md->lock_key );
    113113               
     
    337337        account_t *acc = set->data;
    338338        struct im_connection *ic = acc->ic;
     339        struct msn_data *md = ic->proto_data;
    339340       
    340341        if( strlen( value ) > 129 )
     
    343344                return NULL;
    344345        }
     346       
     347        if( md->flags & MSN_GOT_PROFILE_DN )
     348                imcb_log( ic, "Warning: Persistent name changes for this account have to be done "
     349                              "in the profile. BitlBee doesn't currently support this." );
    345350       
    346351        msn_soap_addressbook_set_display_name( ic, value );
Note: See TracChangeset for help on using the changeset viewer.