Mercurial > pidgin
diff src/protocols/jabber/buddy.c @ 8166:ac7bf273bd66
[gaim-migrate @ 8878]
tweakage
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 24 Jan 2004 22:40:59 +0000 |
parents | 8f4ce853e685 |
children | 3a229ad2fab0 |
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c Fri Jan 23 05:52:04 2004 +0000 +++ b/src/protocols/jabber/buddy.c Sat Jan 24 22:40:59 2004 +0000 @@ -744,8 +744,10 @@ g_string_append_printf(info_text, "<b>%s:</b> %s<br/>\n", _("Role"), text); } else if(text && !strcmp(child->name, "DESC")) { + char *text2 = gaim_strdup_withhtml(text); g_string_append_printf(info_text, "<b>%s:</b> %s<br/>\n", - _("Description"), text); + _("Description"), text2); + g_free(text2); } else if(!strcmp(child->name, "PHOTO") || !strcmp(child->name, "LOGO")) { if((child2 = xmlnode_get_child(child, "BINVAL"))) { @@ -910,16 +912,18 @@ */ - pbm = g_new0(struct proto_buddy_menu, 1); - if(jb->invisible & JABBER_INVIS_BUDDY) { - pbm->label = _("Un-hide From"); - pbm->callback = jabber_buddy_make_visible; - } else { - pbm->label = _("Temporarily Hide From"); - pbm->callback = jabber_buddy_make_invisible; + if(js->protocol_version == JABBER_PROTO_0_9) { + pbm = g_new0(struct proto_buddy_menu, 1); + if(jb->invisible & JABBER_INVIS_BUDDY) { + pbm->label = _("Un-hide From"); + pbm->callback = jabber_buddy_make_visible; + } else { + pbm->label = _("Temporarily Hide From"); + pbm->callback = jabber_buddy_make_invisible; + } + pbm->gc = gc; + m = g_list_append(m, pbm); } - pbm->gc = gc; - m = g_list_append(m, pbm); if(jb->subscription & JABBER_SUB_FROM) { pbm = g_new0(struct proto_buddy_menu, 1);