comparison src/protocols/yahoo/yahoo.c @ 12945:6af3ac33eeea

[gaim-migrate @ 15298] This seems like a better way of dealing with the Presence: None issue. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 19 Jan 2006 07:09:47 +0000
parents 82e918444965
children ec9b92104904
comparison
equal deleted inserted replaced
12944:07eaae27e674 12945:6af3ac33eeea
2807 break; 2807 break;
2808 case YAHOO_PRESENCE_PERM_OFFLINE: 2808 case YAHOO_PRESENCE_PERM_OFFLINE:
2809 presence = _("Appear Permanently Offline"); 2809 presence = _("Appear Permanently Offline");
2810 break; 2810 break;
2811 case YAHOO_PRESENCE_DEFAULT: 2811 case YAHOO_PRESENCE_DEFAULT:
2812 break;
2812 default: 2813 default:
2813 presence = _("None"); 2814 gaim_debug_error("yahoo", "Unknown presence in yahoo_tooltip_text\n");
2814 break; 2815 break;
2815 } 2816 }
2816 } 2817 }
2817 2818
2818 if (status != NULL) { 2819 if (status != NULL) {
2820 g_string_append_printf(s, _("\n<b>%s:</b> %s"), _("Status"), escaped); 2821 g_string_append_printf(s, _("\n<b>%s:</b> %s"), _("Status"), escaped);
2821 g_free(status); 2822 g_free(status);
2822 g_free(escaped); 2823 g_free(escaped);
2823 } 2824 }
2824 2825
2825 if (presence != NULL && f->presence != YAHOO_PRESENCE_DEFAULT) 2826 if (presence != NULL)
2826 g_string_append_printf(s, _("\n<b>%s:</b> %s"), 2827 g_string_append_printf(s, _("\n<b>%s:</b> %s"),
2827 _("Presence"), presence); 2828 _("Presence"), presence);
2828 2829
2829 return g_string_free(s, FALSE); 2830 return g_string_free(s, FALSE);
2830 } 2831 }