libpurple/protocols/yahoo/yahoo_profile.c

branch
next.minor
changeset 30537
9f833935ecd7
parent 27959
f842ae57da4e
child 32162
cf848cd25330
child 33102
dbf343cd9e05
equal deleted inserted replaced
30536:ba8bc8879dde 30537:9f833935ecd7
699 info_data->name); 699 info_data->name);
700 700
701 if (b) { 701 if (b) {
702 const char *balias = purple_buddy_get_local_buddy_alias(b); 702 const char *balias = purple_buddy_get_local_buddy_alias(b);
703 if(balias && balias[0]) { 703 if(balias && balias[0]) {
704 char *aliastext = g_markup_escape_text(balias, -1); 704 purple_notify_user_info_add_pair_plaintext(user_info, _("Alias"), balias);
705 purple_notify_user_info_add_pair(user_info, _("Alias"), aliastext);
706 g_free(aliastext);
707 } 705 }
708 #if 0 706 #if 0
709 if (b->idle > 0) { 707 if (b->idle > 0) {
710 char *idletime = purple_str_seconds_to_string(time(NULL) - b->idle); 708 char *idletime = purple_str_seconds_to_string(time(NULL) - b->idle);
711 purple_notify_user_info_add_pair(user_info, _("Idle"), idletime); 709 purple_notify_user_info_add_pair_plaintext(user_info, _("Idle"), idletime);
712 g_free(idletime); 710 g_free(idletime);
713 } 711 }
714 #endif 712 #endif
715 713
716 /* Add the normal tooltip pairs */ 714 /* Add the normal tooltip pairs */
717 yahoo_tooltip_text(b, user_info, TRUE); 715 yahoo_tooltip_text(b, user_info, TRUE);
718 716
719 if ((f = yahoo_friend_find(info_data->gc, purple_buddy_get_name(b)))) { 717 if ((f = yahoo_friend_find(info_data->gc, purple_buddy_get_name(b)))) {
720 const char *ip; 718 const char *ip;
721 if ((ip = yahoo_friend_get_ip(f))) 719 if ((ip = yahoo_friend_get_ip(f)))
722 purple_notify_user_info_add_pair(user_info, _("IP Address"), ip); 720 purple_notify_user_info_add_pair_plaintext(user_info, _("IP Address"), ip);
723 } 721 }
724 } 722 }
725 } 723 }
726 724
727 #if PHOTO_SUPPORT 725 #if PHOTO_SUPPORT

mercurial