Mercurial > pidgin.yaz
changeset 12491:50ea9356bf52
[gaim-migrate @ 14803]
I'm not 255, and I wasn't born on 01/00/0
PS. Happy Birthday Mum!
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Fri, 16 Dec 2005 01:51:55 +0000 |
parents | 59303812aa9c |
children | 3aaa3236386d |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Fri Dec 16 01:49:56 2005 +0000 +++ b/src/protocols/oscar/oscar.c Fri Dec 16 01:51:55 2005 +0000 @@ -6019,7 +6019,7 @@ oscar_string_append(str, "\n<br>", _("Mobile Phone"), info->mobile); if (info->gender != 0) oscar_string_append(str, "\n<br>", _("Gender"), info->gender == 1 ? _("Female") : _("Male")); - if (info->birthyear || info->birthmonth || info->birthday) { + if ((info->birthyear > 1900) && (info->birthmonth > 0) && (info->birthday > 0)) { char date[30]; struct tm tm; tm.tm_mday = (int)info->birthday; @@ -6028,7 +6028,7 @@ gaim_strftime(date, sizeof(date), "%x", &tm); oscar_string_append(str, "\n<br>", _("Birthday"), date); } - if (info->age) { + if ((info->age > 0) && (info->age < 255)) { char age[5]; snprintf(age, sizeof(age), "%hhd", info->age); oscar_string_append(str, "\n<br>", _("Age"), age);