Ignore:
Timestamp:
2010-12-12T00:25:17Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
8eec79d
Parents:
c775a58
Message:

Allow changing MSN display names in server-side profiles. (I.e. the changes
are finally always persistent again.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    rc775a58 r76c89dc7  
    108108                }
    109109               
     110                g_free( md->profile_rid );
     111               
    110112                g_tree_destroy( md->domaintree );
    111113                md->domaintree = NULL;
     
    322324        struct msn_data *md = ic->proto_data;
    323325       
    324         if( strlen( value ) > 129 )
    325         {
    326                 imcb_log( ic, "Maximum name length exceeded" );
    327                 return NULL;
    328         }
    329        
    330         if( md->flags & MSN_GOT_PROFILE_DN )
    331                 imcb_log( ic, "Warning: Persistent name changes for this account have to be done "
    332                               "in the profile. BitlBee doesn't currently support this." );
    333        
    334326        if( md->flags & MSN_EMAIL_UNVERIFIED )
    335327                imcb_log( ic, "Warning: Your e-mail address is unverified. MSN doesn't allow "
    336328                              "changing your display name until your e-mail address is verified." );
    337329       
    338         msn_soap_addressbook_set_display_name( ic, value );
     330        if( md->flags & MSN_GOT_PROFILE_DN )
     331                msn_soap_profile_set_dn( ic, value );
     332        else
     333                msn_soap_addressbook_set_display_name( ic, value );
     334       
    339335        return msn_ns_set_display_name( ic, value ) ? value : NULL;
    340336}
     
    363359       
    364360        ret->name = "msn";
    365     ret->mms = 1409;         /* this guess taken from libotr UPGRADING file */
     361        ret->mms = 1409;         /* this guess taken from libotr UPGRADING file */
    366362        ret->login = msn_login;
    367363        ret->init = msn_init;
Note: See TracChangeset for help on using the changeset viewer.