# HG changeset patch
# User ivan.komarov@soc.pidgin.im
# Date 1272738763 0
# Node ID bb6e0a21823ec691d9a1d9b51fb27648b1543086
# Parent 2a436e0ce97714eee2ffbeae5055e8c808e124e0
"View Web Profile" link now leads to the correct link for ICQ accounts (#9890).
diff -r 2a436e0ce977 -r bb6e0a21823e libpurple/protocols/oscar/oscar.c
--- a/libpurple/protocols/oscar/oscar.c Thu Apr 29 05:58:02 2010 +0000
+++ b/libpurple/protocols/oscar/oscar.c Sat May 01 18:32:43 2010 +0000
@@ -3534,7 +3534,7 @@
PurpleConnection *gc = od->gc;
PurpleAccount *account = purple_connection_get_account(gc);
PurpleNotifyUserInfo *user_info;
- gchar *tmp = NULL, *info_utf8 = NULL;
+ gchar *tmp = NULL, *info_utf8 = NULL, *base_profile_url = NULL;
va_list ap;
aim_userinfo_t *userinfo;
@@ -3587,8 +3587,9 @@
}
purple_notify_user_info_add_section_break(user_info);
- tmp = g_strdup_printf("%s",
- purple_normalize(account, userinfo->bn), _("View web profile"));
+ base_profile_url = oscar_util_valid_name_icq(userinfo->bn) ? "http://www.icq.com/people" : "http://profiles.aim.com";
+ tmp = g_strdup_printf("%s",
+ base_profile_url, purple_normalize(account, userinfo->bn), _("View web profile"));
purple_notify_user_info_add_pair(user_info, NULL, tmp);
g_free(tmp);