Changeset 660cb00 for protocols/msn/ns.c


Ignore:
Timestamp:
2010-08-15T13:23:03Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
9679fd8
Parents:
5a7af1b
Message:

Parse authentication errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    r5a7af1b r660cb00  
    697697}
    698698
    699 void msn_auth_got_passport_token( struct im_connection *ic, char *token )
     699void msn_auth_got_passport_token( struct im_connection *ic, const char *token, const char *error )
    700700{
    701701        struct msn_data *md;
     
    707707        md = ic->proto_data;
    708708       
     709        if( token )
    709710        {
    710711                char buf[1536];
     
    712713                g_snprintf( buf, sizeof( buf ), "USR %d SSO S %s %s\r\n", ++md->trId, md->tokens[0], token );
    713714                msn_write( ic, buf, strlen( buf ) );
     715        }
     716        else
     717        {
     718                imcb_error( ic, "Error during Passport authentication: %s", error );
     719                imc_logout( ic, TRUE );
    714720        }
    715721}
Note: See TracChangeset for help on using the changeset viewer.