comparison src/protocols/oscar/oscar.c @ 4207:bda7855fa32f

[gaim-migrate @ 4443] So, I figured, "Hey, it's 7am on a Sunday. Why don't I take the legend out of OSCAR Info windows." committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 05 Jan 2003 12:09:34 +0000
parents 511c2b63caa4
children bbd1236e9cc9
comparison
equal deleted inserted replaced
4206:30b5741e4c87 4207:bda7855fa32f
2622 char *text_enc = NULL, *text = NULL, *utf8 = NULL; 2622 char *text_enc = NULL, *text = NULL, *utf8 = NULL;
2623 int text_len; 2623 int text_len;
2624 fu16_t infotype; 2624 fu16_t infotype;
2625 fu32_t flags; 2625 fu32_t flags;
2626 char header[BUF_LONG]; 2626 char header[BUF_LONG];
2627 char legend[BUF_LONG];
2628 struct gaim_connection *gc = sess->aux_data; 2627 struct gaim_connection *gc = sess->aux_data;
2629 struct oscar_data *od = gc->proto_data; 2628 struct oscar_data *od = gc->proto_data;
2630 GSList *l = od->evilhack; 2629 GSList *l = od->evilhack;
2631 gboolean evilhack = FALSE; 2630 gboolean evilhack = FALSE;
2632 va_list ap; 2631 va_list ap;
2656 utf8 = g_strdup(_("<I>Unable to display information because it was sent in an unknown encoding.</I>")); 2655 utf8 = g_strdup(_("<I>Unable to display information because it was sent in an unknown encoding.</I>"));
2657 debug_printf("Encountered an unknown encoding while parsing userinfo\n"); 2656 debug_printf("Encountered an unknown encoding while parsing userinfo\n");
2658 } 2657 }
2659 } 2658 }
2660 2659
2661 if (!od->icq) {
2662 g_snprintf(legend, sizeof legend,
2663 _("<BODY BGCOLOR=WHITE><hr><I>Legend:</I><br><br>"
2664 "<IMG SRC=\"free_icon.gif\"> : Normal AIM User<br>"
2665 "<IMG SRC=\"aol_icon.gif\"> : AOL User <br>"
2666 "<IMG SRC=\"dt_icon.gif\"> : Trial AIM User <br>"
2667 "<IMG SRC=\"admin_icon.gif\"> : Administrator <br>"
2668 "<IMG SRC=\"ab_icon.gif\"> : ActiveBuddy Interactive Agent<br>"
2669 "<IMG SRC=\"wireless_icon.gif\"> : Wireless Device User<br>"));
2670 } else {
2671 legend[0] = 0;
2672 }
2673
2674 if (info->present & AIM_USERINFO_PRESENT_ONLINESINCE) { 2660 if (info->present & AIM_USERINFO_PRESENT_ONLINESINCE) {
2675 onlinesince = g_strdup_printf("Online Since : <B>%s</B><BR>\n", 2661 onlinesince = g_strdup_printf("Online Since : <B>%s</B><BR>\n",
2676 asctime(localtime(&info->onlinesince))); 2662 asctime(localtime(&info->onlinesince)));
2677 } 2663 }
2678 2664
2718 if (infotype == AIM_GETINFO_AWAYMESSAGE) { 2704 if (infotype == AIM_GETINFO_AWAYMESSAGE) {
2719 if (evilhack) { 2705 if (evilhack) {
2720 g_show_info_text(gc, info->sn, 2, 2706 g_show_info_text(gc, info->sn, 2,
2721 header, 2707 header,
2722 (utf8 && *utf8) ? away_subs(utf8, gc->username) : 2708 (utf8 && *utf8) ? away_subs(utf8, gc->username) :
2723 _("<i>User has no away message</i>"), 2709 _("<i>User has no away message</i>"), NULL);
2724 legend, NULL);
2725 } else { 2710 } else {
2726 g_show_info_text(gc, info->sn, 0, 2711 g_show_info_text(gc, info->sn, 0,
2727 header, 2712 header,
2728 (utf8 && *utf8) ? away_subs(utf8, gc->username) : NULL, 2713 (utf8 && *utf8) ? away_subs(utf8, gc->username) : NULL,
2729 (utf8 && *utf8) ? "<BR><HR>" : NULL, 2714 (utf8 && *utf8) ? "<BR><HR>" : NULL,
2733 g_show_info_text(gc, info->sn, 2, 2718 g_show_info_text(gc, info->sn, 2,
2734 header, 2719 header,
2735 "<i>", _("Client Capabilities: "), 2720 "<i>", _("Client Capabilities: "),
2736 caps_string(info->capabilities), 2721 caps_string(info->capabilities),
2737 "</i>", 2722 "</i>",
2738 legend,
2739 NULL); 2723 NULL);
2740 } else { 2724 } else {
2741 g_show_info_text(gc, info->sn, 1, 2725 g_show_info_text(gc, info->sn, 1,
2742 (utf8 && *utf8) ? away_subs(utf8, gc->username) : 2726 (utf8 && *utf8) ? away_subs(utf8, gc->username) :
2743 _("<i>No Information Provided</i>"), 2727 _("<i>No Information Provided</i>"),
2744 legend,
2745 NULL); 2728 NULL);
2746 } 2729 }
2747 2730
2748 g_free(utf8); 2731 g_free(utf8);
2749 2732