# HG changeset patch # User Mark Doliner # Date 1041977983 0 # Node ID d3069a71f14d073e8c0f83216239bc9db034a31b # Parent b997b399f63600cc06b0901b7e2118a1ffb3cd09 [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 diff -r b997b399f636 -r d3069a71f14d src/protocols/oscar/oscar.c --- 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;