diff -r 823d3591438c -r c2f3b4dcf711 src/protocols/yahoo/yahoo_profile.c
--- a/src/protocols/yahoo/yahoo_profile.c Fri Jan 20 17:24:54 2006 +0000
+++ b/src/protocols/yahoo/yahoo_profile.c Fri Jan 20 20:35:18 2006 +0000
@@ -668,7 +668,9 @@
info_data->name);
if (b) {
- char *statustext = yahoo_tooltip_text(b, TRUE);
+ GString *str = g_string_new("");
+ char *tmp;
+
if(b->alias && b->alias[0]) {
char *aliastext = g_markup_escape_text(b->alias, -1);
g_string_append_printf(s, _("Alias: %s
"), aliastext);
@@ -682,14 +684,14 @@
g_free(idletime);
}
#endif
- if (statustext) {
- char *tmp;
- g_strstrip(statustext);
- tmp = gaim_strreplace(statustext, "\n", "
");
- g_free(statustext);
- g_string_append_printf(s, "%s
", tmp);
- g_free(tmp);
- }
+
+ yahoo_tooltip_text(b, str, TRUE);
+ tmp = gaim_strreplace((*str->str == '\n' ? str->str + 1 : str->str),
+ "\n", "
");
+ g_string_free(str, TRUE);
+ g_string_append_printf(s, "%s
", tmp);
+ g_free(tmp);
+
if ((f = yahoo_friend_find(info_data->gc, b->name))) {
const char *ip;
if ((ip = yahoo_friend_get_ip(f)))