changeset 4233:d3069a71f14d

[gaim-migrate @ 4478] This should help clarify just who you're requesting authorization from for those of you that have aliased buddies in your ICQ list that don't yet exist in your server list. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 07 Jan 2003 22:19:43 +0000
parents b997b399f636
children 64d834b6caf2
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Tue Jan 07 22:04:22 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Tue Jan 07 22:19:43 2003 +0000
@@ -4215,12 +4215,22 @@
 			case 0x000e: { /* contact requires authorization */
 				if (retval->action == AIM_CB_SSI_ADD) {
 					struct name_data *data = g_new(struct name_data, 1);
-					gchar *dialog_msg = g_strdup_printf(_("The user %s requires authorization before being added to a buddy list.  Do you want to send an authorization request?"), retval->name);
+					struct buddy *buddy;
+					gchar *alias;
+					gchar *dialog_msg;
+
+					buddy = find_buddy(gc, retval->name);
+					if (buddy && (get_buddy_alias_only(buddy)))
+						alias = g_strdup_printf(" (%s)", get_buddy_alias_only(buddy));
+					else
+						alias = g_strdup("");
+					dialog_msg = g_strdup_printf(_("The user %s%s requires authorization before being added to a buddy list.  Do you want to send an authorization request?"), retval->name, alias);
 					data->gc = gc;
 					data->name = g_strdup(retval->name);
 					data->nick = NULL;
 					do_ask_dialog(_("Request Authorization"), dialog_msg, data, _("Request Authorization"), gaim_auth_request, _("Cancel"), gaim_auth_dontrequest);
 					g_free(dialog_msg);
+					g_free(alias);
 				}
 			} break;