Mercurial > pidgin
diff libpurple/protocols/mxit/protocol.c @ 31638:055a33b6bf59
Also show FirstName and LastName in search-results and friend-suggestions.
(These are not a new strings, since they already exist in the file).
| author | andrew.victor@mxit.com |
|---|---|
| date | Sun, 15 May 2011 20:27:51 +0000 |
| parents | 45d3df336659 |
| children | a47a82a009bf |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/protocol.c Sun May 15 20:07:27 2011 +0000 +++ b/libpurple/protocols/mxit/protocol.c Sun May 15 20:27:51 2011 +0000 @@ -1986,6 +1986,14 @@ /* birthdate */ g_strlcpy( profile->birthday, fvalue, sizeof( profile->birthday ) ); } + else if ( strcmp( CP_PROFILE_FIRSTNAME, fname ) == 0 ) { + /* first name */ + g_strlcpy( profile->firstname, fvalue, sizeof( profile->firstname ) ); + } + else if ( strcmp( CP_PROFILE_LASTNAME, fname ) == 0 ) { + /* last name */ + g_strlcpy( profile->lastname, fvalue, sizeof( profile->lastname ) ); + } else if ( strcmp( CP_PROFILE_GENDER, fname ) == 0 ) { /* gender */ profile->male = ( fvalue[0] == '1' );
