Mercurial > pidgin.yaz
diff src/protocols/oscar/oscar.c @ 10116:9f358a718f38
[gaim-migrate @ 11153]
I went through every commit email on oldstatus since we branched, and merged
relevant things to HEAD that had only been applied on oldstatus.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Mon, 18 Oct 2004 19:02:33 +0000 |
parents | 8490f2e292a6 |
children | 096197a628bf |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Mon Oct 18 17:25:25 2004 +0000 +++ b/src/protocols/oscar/oscar.c Mon Oct 18 19:02:33 2004 +0000 @@ -4173,13 +4173,15 @@ g_string_append_printf(str, "<b>%s:</b> %s", _("Screen Name"), userinfo->sn); g_string_append_printf(str, "\n<br><b>%s</b>: %d%%", _("Warning Level"), (int)((userinfo->warnlevel/10.0) + 0.5)); - if (userinfo->present & AIM_USERINFO_PRESENT_ONLINESINCE) - oscar_string_append(str, "\n<br>", _("Online Since"), - asctime(localtime((time_t *)&userinfo->onlinesince))); - - if (userinfo->present & AIM_USERINFO_PRESENT_MEMBERSINCE) - oscar_string_append(str, "\n<br>", _("Member Since"), - asctime(localtime((time_t *)&userinfo->membersince))); + if (userinfo->present & AIM_USERINFO_PRESENT_ONLINESINCE) { + time_t t = userinfo->onlinesince; + oscar_string_append(str, "\n<br>", _("Online Since"), ctime(&t)); + } + + if (userinfo->present & AIM_USERINFO_PRESENT_MEMBERSINCE) { + time_t t = userinfo->membersince; + oscar_string_append(str, "\n<br>", _("Member Since"), ctime(&t)); + } if (userinfo->present & AIM_USERINFO_PRESENT_IDLE) { tmp = gaim_str_seconds_to_string(userinfo->idletime*60); @@ -6252,7 +6254,7 @@ data->nick = NULL; gaim_request_yes_no(gc, NULL, _("Authorization Given"), dialog_msg, - 0, data, + GAIM_DEFAULT_ACTION_NONE, data, G_CALLBACK(gaim_icq_buddyadd), G_CALLBACK(oscar_free_name_data)); @@ -6657,7 +6659,7 @@ ret = g_strdup(_("Away")); } else if (GAIM_BUDDY_IS_ONLINE(b)) { struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, gaim_normalize(b->account, b->name)); - if (bi->availmsg) + if ((bi != NULL) && (bi->availmsg != NULL)) ret = g_markup_escape_text(bi->availmsg, strlen(bi->availmsg)); } else { char *gname = aim_ssi_itemlist_findparentname(od->sess->ssi.local, b->name);