Changeset ed0589c


Ignore:
Timestamp:
2010-11-13T13:01:40Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6b96de6
Parents:
70d7795
Message:

Fixed issue with logging in to unverified MSN accounts.

Location:
protocols/msn
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r70d7795 red0589c  
    331331                imcb_log( ic, "Warning: Persistent name changes for this account have to be done "
    332332                              "in the profile. BitlBee doesn't currently support this." );
     333       
     334        if( md->flags & MSN_EMAIL_UNVERIFIED )
     335                imcb_log( ic, "Warning: Your e-mail address is unverified. MSN doesn't allow "
     336                              "changing your display name until your e-mail address if verified." );
    333337       
    334338        msn_soap_addressbook_set_display_name( ic, value );
  • protocols/msn/msn.h

    r70d7795 red0589c  
    8282        MSN_DONE_ADL = 4,
    8383        MSN_REAUTHING = 8,
     84        MSN_EMAIL_UNVERIFIED = 16,
    8485} msn_flags_t;
    8586
  • protocols/msn/ns.c

    r70d7795 red0589c  
    278278                else if( strcmp( cmd[2], "OK" ) == 0 )
    279279                {
     280                        /* If the number after the handle is 0, the e-mail
     281                           address is unverified, which means we can't change
     282                           the display name. */
     283                        if( cmd[4][0] == '0' )
     284                                md->flags |= MSN_EMAIL_UNVERIFIED;
     285                       
    280286                        imcb_log( ic, "Authenticated, getting buddy list" );
    281287                        msn_soap_memlist_request( ic );
     
    870876       
    871877        if( ( md->flags & MSN_DONE_ADL ) && ( md->flags & MSN_GOT_PROFILE ) )
    872                 return msn_ns_set_display_name( ic, set_getstr( &ic->acc->set, "display_name" ) );
    873         else
    874                 return 1;
    875 }
     878        {
     879                if( md->flags & MSN_EMAIL_UNVERIFIED )
     880                        imcb_connected( ic );
     881                else
     882                        return msn_ns_set_display_name( ic, set_getstr( &ic->acc->set, "display_name" ) );
     883        }
     884       
     885        return 1;
     886}
Note: See TracChangeset for help on using the changeset viewer.