changeset 8902:cb3dd3a4c71c

[gaim-migrate @ 9671] Show "not specified" as a gender instead of defaulting to male. I thought about using "inhuman" or "unknown"... but I didn't. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 08 May 2004 07:19:33 +0000
parents c430e99bb147
children 4ffbbe330ee5
files src/protocols/oscar/icq.c src/protocols/oscar/oscar.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/icq.c	Fri May 07 03:57:30 2004 +0000
+++ b/src/protocols/oscar/icq.c	Sat May 08 07:19:33 2004 +0000
@@ -550,7 +550,7 @@
 		case 0x00dc: { /* personal information */
 			info->age = aimbs_getle8(&qbs);
 			info->unknown = aimbs_getle8(&qbs);
-			info->gender = aimbs_getle8(&qbs);
+			info->gender = aimbs_getle8(&qbs); /* Not specified=0x00, Female=0x01, Male=0x02 */
 			info->personalwebpage = aimbs_getstr(&qbs, aimbs_getle16(&qbs));
 			info->birthyear = aimbs_getle16(&qbs);
 			info->birthmonth = aimbs_getle8(&qbs);
--- a/src/protocols/oscar/oscar.c	Fri May 07 03:57:30 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Sat May 08 07:19:33 2004 +0000
@@ -4235,7 +4235,8 @@
 		}
 	}
 	oscar_string_append(str, "\n<br>", _("Mobile Phone"), info->mobile);
-	oscar_string_append(str, "\n<br>", _("Gender"), info->gender==1 ? _("Female") : _("Male"));
+	oscar_string_append(str, "\n<br>", _("Gender"), info->gender == 0 ? _("Not specified") :
+													info->gender == 1 ? _("Female") : _("Male"));
 	if (info->birthyear || info->birthmonth || info->birthday) {
 		char date[30];
 		struct tm tm;