Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoo_profile.c @ 25130:16734635febf
Start hiding blist.h internals in prpls.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 27 Sep 2008 06:33:42 +0000 |
parents | 18a1f0fe5f40 |
children | 8aa7d8bcbc7d |
comparison
equal
deleted
inserted
replaced
24188:d1cfa8c11902 | 25130:16734635febf |
---|---|
713 #endif | 713 #endif |
714 | 714 |
715 /* Add the normal tooltip pairs */ | 715 /* Add the normal tooltip pairs */ |
716 yahoo_tooltip_text(b, user_info, TRUE); | 716 yahoo_tooltip_text(b, user_info, TRUE); |
717 | 717 |
718 if ((f = yahoo_friend_find(info_data->gc, b->name))) { | 718 if ((f = yahoo_friend_find(info_data->gc, purple_buddy_get_name(b)))) { |
719 const char *ip; | 719 const char *ip; |
720 if ((ip = yahoo_friend_get_ip(f))) | 720 if ((ip = yahoo_friend_get_ip(f))) |
721 purple_notify_user_info_add_pair(user_info, _("IP Address"), ip); | 721 purple_notify_user_info_add_pair(user_info, _("IP Address"), ip); |
722 } | 722 } |
723 } | 723 } |
1213 if (b) { | 1213 if (b) { |
1214 /* Someone on the buddy list can be "not on server list", | 1214 /* Someone on the buddy list can be "not on server list", |
1215 * in which case the user may or may not actually exist. | 1215 * in which case the user may or may not actually exist. |
1216 * Hence this extra step. | 1216 * Hence this extra step. |
1217 */ | 1217 */ |
1218 f = yahoo_friend_find(b->account->gc, b->name); | 1218 PurpleAccount *account = purple_buddy_get_account(b); |
1219 f = yahoo_friend_find(purple_account_get_connection(account), | |
1220 purple_buddy_get_name(b)); | |
1219 } | 1221 } |
1220 g_string_append_printf(str, "%s<br><br>", | 1222 g_string_append_printf(str, "%s<br><br>", |
1221 f? _("Could not retrieve the user's profile. " | 1223 f? _("Could not retrieve the user's profile. " |
1222 "This most likely is a temporary server-side problem. " | 1224 "This most likely is a temporary server-side problem. " |
1223 "Please try again later."): | 1225 "Please try again later."): |