changeset 29000:04b0ba94d646

Accidentally reversed this logic in an earlier commit
author Mark Doliner <mark@kingant.net>
date Sun, 22 Nov 2009 23:34:52 +0000
parents cfde83c57a98
children 730ed9c1c780
files libpurple/protocols/mxit/actions.c libpurple/protocols/mxit/login.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/mxit/actions.c	Sun Nov 22 23:13:19 2009 +0000
+++ b/libpurple/protocols/mxit/actions.c	Sun Nov 22 23:34:52 2009 +0000
@@ -218,7 +218,7 @@
 		acount++;
 
 		/* update gender */
-		profile->male = ( purple_request_fields_get_choice( fields, "male" ) == 0 );
+		profile->male = ( purple_request_fields_get_choice( fields, "male" ) != 0 );
 		g_snprintf( attrib, sizeof( attrib ), "\01%s\01%i\01%s", CP_PROFILE_GENDER, CP_PROF_TYPE_BOOL, ( profile->male ) ? "1" : "0" );
 		g_string_append( attributes, attrib );
 		acount++;
--- a/libpurple/protocols/mxit/login.c	Sun Nov 22 23:13:19 2009 +0000
+++ b/libpurple/protocols/mxit/login.c	Sun Nov 22 23:34:52 2009 +0000
@@ -254,7 +254,7 @@
 	g_strlcpy( profile->birthday, str, sizeof( profile->birthday ) );
 
 	/* gender */
-	profile->male = ( purple_request_fields_get_choice( fields, "male" ) == 0 );
+	profile->male = ( purple_request_fields_get_choice( fields, "male" ) != 0 );
 
 	/* pin */
 	pin = purple_request_fields_get_string( fields, "pin" );