Changeset 5fecede for protocols/msn/ns.c


Ignore:
Timestamp:
2010-08-08T17:29:43Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7db65b7
Parents:
2528cda
Message:

Enough changes to successfully login up to (but not including) fetching the
contact list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    r2528cda r5fecede  
    7373        md->handler->rxq = g_new0( char, 1 );
    7474       
    75         g_snprintf( s, sizeof( s ), "VER %d MSNP8 CVR0\r\n", ++md->trId );
     75        g_snprintf( s, sizeof( s ), "VER %d MSNP14 CVR0\r\n", ++md->trId );
    7676        if( msn_write( ic, s, strlen( s ) ) )
    7777        {
     
    113113        if( strcmp( cmd[0], "VER" ) == 0 )
    114114        {
    115                 if( cmd[2] && strncmp( cmd[2], "MSNP8", 5 ) != 0 )
     115                if( cmd[2] && strncmp( cmd[2], "MSNP14", 5 ) != 0 )
    116116                {
    117117                        imcb_error( ic, "Unsupported protocol" );
     
    230230                        }
    231231                }
    232                 else if( num_parts >= 7 && strcmp( cmd[2], "OK" ) == 0 )
     232                else if( strcmp( cmd[2], "OK" ) == 0 )
    233233                {
    234234                        if( num_parts == 7 )
     
    655655                        }
    656656                }
     657        }
     658        else if( strcmp( cmd[0], "GCF" ) == 0 )
     659        {
     660                /* Coming up is cmd[2] bytes of stuff we're supposed to
     661                   censore. Meh. */
     662                md->handler->msglen = atoi( cmd[2] );
    657663        }
    658664        else if( isdigit( cmd[0][0] ) )
Note: See TracChangeset for help on using the changeset viewer.