Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/mxit.c Thu May 20 09:03:37 2010 +0000 +++ b/libpurple/protocols/mxit/mxit.c Thu May 20 09:29:46 2010 +0000 @@ -352,6 +352,10 @@ if ( contact->subtype != 0 ) purple_notify_user_info_add_pair( info, _( "Subscription" ), mxit_convert_subtype_to_name( contact->subtype ) ); + /* rejection message */ + if ( ( contact->subtype == MXIT_SUBTYPE_REJECTED ) && ( contact->msg != NULL ) ) + purple_notify_user_info_add_pair( info, _( "Rejection Message" ), contact->msg ); + /* hidden number */ if ( contact->flags & MXIT_CFLAG_HIDDEN ) purple_notify_user_info_add_pair( info, _( "Hidden Number" ), _( "Yes" ) ); @@ -491,6 +495,8 @@ g_free( contact->statusMsg ); if ( contact->avatarId ) g_free( contact->avatarId ); + if ( contact->msg ) + g_free( contact->msg ); g_free( contact ); }