Mercurial > pidgin
diff libpurple/protocols/mxit/protocol.c @ 29999:207662bad69c
* Show the buddy's registration country in their profile.
* We cannot see the buddy's current "hidden number" setting in their profile,
so we need to use the value they had set when they invited us.
author | andrew.victor@mxit.com |
---|---|
date | Wed, 19 May 2010 20:29:31 +0000 |
parents | 4232e6b27bea |
children | 5622de6b7b8d |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/protocol.c Wed May 19 19:50:36 2010 +0000 +++ b/libpurple/protocols/mxit/protocol.c Wed May 19 20:29:31 2010 +0000 @@ -1647,6 +1647,10 @@ /* mobile number */ g_strlcpy( profile->mobilenr, fvalue, sizeof( profile->mobilenr ) ); } + else if ( strcmp( CP_PROFILE_REGCOUNTRY, fname ) == 0 ) { + /* registered country */ + g_strlcpy( profile->regcountry, fvalue, sizeof( profile->regcountry ) ); + } else { /* invalid profile attribute */ purple_debug_error( MXIT_PLUGIN_ID, "Invalid profile attribute received '%s' \n", fname );