| 4171 |
4171 |
| 4172 str = g_string_new(""); |
4172 str = g_string_new(""); |
| 4173 g_string_append_printf(str, "<b>%s:</b> %s", _("Screen Name"), userinfo->sn); |
4173 g_string_append_printf(str, "<b>%s:</b> %s", _("Screen Name"), userinfo->sn); |
| 4174 g_string_append_printf(str, "\n<br><b>%s</b>: %d%%", _("Warning Level"), (int)((userinfo->warnlevel/10.0) + 0.5)); |
4174 g_string_append_printf(str, "\n<br><b>%s</b>: %d%%", _("Warning Level"), (int)((userinfo->warnlevel/10.0) + 0.5)); |
| 4175 |
4175 |
| 4176 if (userinfo->present & AIM_USERINFO_PRESENT_ONLINESINCE) |
4176 if (userinfo->present & AIM_USERINFO_PRESENT_ONLINESINCE) { |
| 4177 oscar_string_append(str, "\n<br>", _("Online Since"), |
4177 time_t t = userinfo->onlinesince; |
| 4178 asctime(localtime((time_t *)&userinfo->onlinesince))); |
4178 oscar_string_append(str, "\n<br>", _("Online Since"), ctime(&t)); |
| 4179 |
4179 } |
| 4180 if (userinfo->present & AIM_USERINFO_PRESENT_MEMBERSINCE) |
4180 |
| 4181 oscar_string_append(str, "\n<br>", _("Member Since"), |
4181 if (userinfo->present & AIM_USERINFO_PRESENT_MEMBERSINCE) { |
| 4182 asctime(localtime((time_t *)&userinfo->membersince))); |
4182 time_t t = userinfo->membersince; |
| |
4183 oscar_string_append(str, "\n<br>", _("Member Since"), ctime(&t)); |
| |
4184 } |
| 4183 |
4185 |
| 4184 if (userinfo->present & AIM_USERINFO_PRESENT_IDLE) { |
4186 if (userinfo->present & AIM_USERINFO_PRESENT_IDLE) { |
| 4185 tmp = gaim_str_seconds_to_string(userinfo->idletime*60); |
4187 tmp = gaim_str_seconds_to_string(userinfo->idletime*60); |
| 4186 oscar_string_append(str, "\n<br>", _("Idle"), tmp); |
4188 oscar_string_append(str, "\n<br>", _("Idle"), tmp); |
| 4187 g_free(tmp); |
4189 g_free(tmp); |
| 6250 data->gc = gc; |
6252 data->gc = gc; |
| 6251 data->name = g_strdup(sn); |
6253 data->name = g_strdup(sn); |
| 6252 data->nick = NULL; |
6254 data->nick = NULL; |
| 6253 |
6255 |
| 6254 gaim_request_yes_no(gc, NULL, _("Authorization Given"), dialog_msg, |
6256 gaim_request_yes_no(gc, NULL, _("Authorization Given"), dialog_msg, |
| 6255 0, data, |
6257 GAIM_DEFAULT_ACTION_NONE, data, |
| 6256 G_CALLBACK(gaim_icq_buddyadd), |
6258 G_CALLBACK(gaim_icq_buddyadd), |
| 6257 G_CALLBACK(oscar_free_name_data)); |
6259 G_CALLBACK(oscar_free_name_data)); |
| 6258 |
6260 |
| 6259 g_free(dialog_msg); |
6261 g_free(dialog_msg); |
| 6260 g_free(nombre); |
6262 g_free(nombre); |
| 6655 ret = oscar_icqstatus((b->uc & 0xffff0000) >> 16); |
6657 ret = oscar_icqstatus((b->uc & 0xffff0000) >> 16); |
| 6656 else |
6658 else |
| 6657 ret = g_strdup(_("Away")); |
6659 ret = g_strdup(_("Away")); |
| 6658 } else if (GAIM_BUDDY_IS_ONLINE(b)) { |
6660 } else if (GAIM_BUDDY_IS_ONLINE(b)) { |
| 6659 struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, gaim_normalize(b->account, b->name)); |
6661 struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, gaim_normalize(b->account, b->name)); |
| 6660 if (bi->availmsg) |
6662 if ((bi != NULL) && (bi->availmsg != NULL)) |
| 6661 ret = g_markup_escape_text(bi->availmsg, strlen(bi->availmsg)); |
6663 ret = g_markup_escape_text(bi->availmsg, strlen(bi->availmsg)); |
| 6662 } else { |
6664 } else { |
| 6663 char *gname = aim_ssi_itemlist_findparentname(od->sess->ssi.local, b->name); |
6665 char *gname = aim_ssi_itemlist_findparentname(od->sess->ssi.local, b->name); |
| 6664 if (aim_ssi_waitingforauth(od->sess->ssi.local, gname, b->name)) |
6666 if (aim_ssi_waitingforauth(od->sess->ssi.local, gname, b->name)) |
| 6665 ret = g_strdup(_("Not Authorized")); |
6667 ret = g_strdup(_("Not Authorized")); |