pidgin: 56964298: Accidentally reversed this logic in an e...

markdoliner at pidgin.im markdoliner at pidgin.im
Sun Nov 22 18:41:53 EST 2009


-----------------------------------------------------------------
Revision: 569642987f6f11fdb718731b245d60f535fe0962
Ancestor: b9de25fa0dadddcc1cb6a0a50ec1d2e7dbd810bd
Author: markdoliner at pidgin.im
Date: 2009-11-22T23:34:52
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/569642987f6f11fdb718731b245d60f535fe0962

Modified files:
        libpurple/protocols/mxit/actions.c
        libpurple/protocols/mxit/login.c

ChangeLog: 

Accidentally reversed this logic in an earlier commit

-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/actions.c	198a649e7999b423fc2ba2ab15a7a91d2e69381b
+++ libpurple/protocols/mxit/actions.c	e2a8528c4681ee8c24502066e5f12395a2fd9517
@@ -218,7 +218,7 @@ out:
 		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++;
============================================================
--- libpurple/protocols/mxit/login.c	0fa54f325318e2e34cc89441d94021093486982a
+++ libpurple/protocols/mxit/login.c	3e8151c24fb8a60e06b1b11ab1a7f5e14e07a767
@@ -254,7 +254,7 @@ static void mxit_cb_register_ok( PurpleC
 	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" );


More information about the Commits mailing list