changeset 8576:ddbcef747dc7

[gaim-migrate @ 9325] Another patch from Ambrose C. Li: This is a very small patch. The only thing it does is to add a "Set User Info (URL)..." protocol action for ICQ that loads a static web page. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 04 Apr 2004 15:08:26 +0000
parents be805ad5f9c7
children 599d6ac9bbfe
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Apr 04 14:57:54 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Sun Apr 04 15:08:26 2004 +0000
@@ -6712,6 +6712,11 @@
 	gaim_account_request_change_user_info(gaim_connection_get_account(gc));
 }
 
+static void oscar_show_set_info_icqurl(GaimConnection *gc)
+{
+	gaim_notify_uri(gc, "http://web.icq.com/whitepages/login/1,,,00.html");
+}
+
 static void oscar_change_pass(GaimConnection *gc)
 {
 	gaim_account_request_change_password(gaim_connection_get_account(gc));
@@ -6775,6 +6780,14 @@
 	pam->gc = gc;
 	m = g_list_append(m, pam);
 
+	if (od->icq) {
+		pam = g_new0(struct proto_actions_menu, 1);
+		pam->label = _("Set User Info (URL)...");
+		pam->callback = oscar_show_set_info_icqurl;
+		pam->gc = gc;
+		m = g_list_append(m, pam);
+	}
+
 #if 0
 	pam = g_new0(struct proto_actions_menu, 1);
 	pam->label = _("Set Available Message...");