Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 4625:819ba05f5b1b
[gaim-migrate @ 4916]
This fixes some problems with gender, in that, if someone
specified either male of female, Gaim would always show
"Age: Female," which isn't exactly right.
Gender?! I don't even know her!
I also made bunches of email addresses show up, and
made them show up as mailto: links. I guess these
will just get passed to your browser.
And I fixed the UIN field. That was a dumb mistake.
So aliases should update themselves better now. Still
not automagically, though.
Oh, and I made the day show up as MM/DD/YY instead of
DD/MM/YY. For a second there I thought I was in a
different country, but I safe and sound now, back in
good old 1955.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 28 Feb 2003 07:29:17 +0000 |
parents | a964972cb361 |
children | bcfda01c707a |
comparison
equal
deleted
inserted
replaced
4624:a964972cb361 | 4625:819ba05f5b1b |
---|---|
3529 } | 3529 } |
3530 if (info->last) { | 3530 if (info->last) { |
3531 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Last Name:</b> ", info->last, NULL); g_free(tmp); | 3531 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Last Name:</b> ", info->last, NULL); g_free(tmp); |
3532 } | 3532 } |
3533 if (info->email) { | 3533 if (info->email) { |
3534 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Email Address:</b> ", info->email, NULL); g_free(tmp); | 3534 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Email Address:</b> <a href=\"mailto:", info->email, "\">", info->email, "</a>", NULL); g_free(tmp); |
3535 } | |
3536 if (info->numaddresses && info->email2) { | |
3537 int i; | |
3538 for (i = 0; i < info->numaddresses; i++) { | |
3539 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Email Address:</b> <a href=\"mailto:", info->email2[i], "\">", info->email2[i], "</a>", NULL); g_free(tmp); | |
3540 } | |
3535 } | 3541 } |
3536 if (info->mobile) { | 3542 if (info->mobile) { |
3537 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Mobile:</b> ", info->mobile, NULL); g_free(tmp); | 3543 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Mobile Phone:</b> ", info->mobile, NULL); g_free(tmp); |
3544 } | |
3545 if (info->gender) { | |
3546 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Gender:</b> ", info->gender==1 ? "Female" : "Male", NULL); g_free(tmp); | |
3538 } | 3547 } |
3539 if (info->birthyear || info->birthmonth || info->birthday) { | 3548 if (info->birthyear || info->birthmonth || info->birthday) { |
3540 char date[15]; | 3549 char date[15]; |
3541 snprintf(date, sizeof(date), "%hhd/%hhd/%hd", info->birthday, info->birthmonth, info->birthyear); | 3550 snprintf(date, sizeof(date), "%hhd/%hhd/%hd", info->birthmonth, info->birthday, info->birthyear); |
3542 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Birthday:</b> ", date, NULL); g_free(tmp); | 3551 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Birthday:</b> ", date, NULL); g_free(tmp); |
3543 } | 3552 } |
3544 if (info->age) { | 3553 if (info->age) { |
3545 char age[5]; | 3554 char age[5]; |
3546 snprintf(age, sizeof(age), "%hhd", info->age); | 3555 snprintf(age, sizeof(age), "%hhd", info->age); |
3547 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Age:</b> ", age, NULL); g_free(tmp); | 3556 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Age:</b> ", age, NULL); g_free(tmp); |
3548 } | |
3549 if (info->gender) { | |
3550 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Age:</b> ", info->gender ? "Male" : "Female", NULL); g_free(tmp); | |
3551 } | 3557 } |
3552 if (info->personalwebpage) { | 3558 if (info->personalwebpage) { |
3553 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Personal Web Page:</b> <a href=\"", info->personalwebpage, "\">", info->personalwebpage, "</a>", NULL); g_free(tmp); | 3559 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Personal Web Page:</b> <a href=\"", info->personalwebpage, "\">", info->personalwebpage, "</a>", NULL); g_free(tmp); |
3554 } | 3560 } |
3555 if (info->info) { | 3561 if (info->info) { |