comparison libpurple/protocols/mxit/mxit.c @ 30422:30d0d4756fac

* Separate the ClientVersion from the supported ProtocolVersion. * Increment the protocol version we use from v5.9 to v6.0, and update the Login Request packet accordingly. * Protocol v6.0 supports Invite Rejection messages, so if an invite we sent was rejected then display it in the buddy tooltip.
author andrew.victor@mxit.com
date Thu, 20 May 2010 09:29:46 +0000
parents 207662bad69c
children d7325448badb
comparison
equal deleted inserted replaced
30421:6e4fa807abd4 30422:30d0d4756fac
350 350
351 /* subscription type */ 351 /* subscription type */
352 if ( contact->subtype != 0 ) 352 if ( contact->subtype != 0 )
353 purple_notify_user_info_add_pair( info, _( "Subscription" ), mxit_convert_subtype_to_name( contact->subtype ) ); 353 purple_notify_user_info_add_pair( info, _( "Subscription" ), mxit_convert_subtype_to_name( contact->subtype ) );
354 354
355 /* rejection message */
356 if ( ( contact->subtype == MXIT_SUBTYPE_REJECTED ) && ( contact->msg != NULL ) )
357 purple_notify_user_info_add_pair( info, _( "Rejection Message" ), contact->msg );
358
355 /* hidden number */ 359 /* hidden number */
356 if ( contact->flags & MXIT_CFLAG_HIDDEN ) 360 if ( contact->flags & MXIT_CFLAG_HIDDEN )
357 purple_notify_user_info_add_pair( info, _( "Hidden Number" ), _( "Yes" ) ); 361 purple_notify_user_info_add_pair( info, _( "Hidden Number" ), _( "Yes" ) );
358 } 362 }
359 363
489 if ( contact ) { 493 if ( contact ) {
490 if ( contact->statusMsg ) 494 if ( contact->statusMsg )
491 g_free( contact->statusMsg ); 495 g_free( contact->statusMsg );
492 if ( contact->avatarId ) 496 if ( contact->avatarId )
493 g_free( contact->avatarId ); 497 g_free( contact->avatarId );
498 if ( contact->msg )
499 g_free( contact->msg );
494 g_free( contact ); 500 g_free( contact );
495 } 501 }
496 502
497 purple_buddy_set_protocol_data(buddy, NULL); 503 purple_buddy_set_protocol_data(buddy, NULL);
498 } 504 }