changeset 29863:8b167aaf3457

*** Plucked rev 0e263caa5d687101e436029f2f8d09053ae06e23 (ivan.komarov@soc.pidgin.im): \"View Web Profile\" link now leads to the correct link for ICQ accounts (Refs #9890).
author Paul Aurich <paul@darkrain42.org>
date Sat, 01 May 2010 21:40:45 +0000
parents d64a0d8ff36d
children 05bd10c52b01
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Sat May 01 20:10:21 2010 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Sat May 01 21:40:45 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("<a href=\"http://profiles.aim.com/%s\">%s</a>",
-			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("<a href=\"%s/%s\">%s</a>",
+			base_profile_url, purple_normalize(account, userinfo->bn), _("View web profile"));
 	purple_notify_user_info_add_pair(user_info, NULL, tmp);
 	g_free(tmp);