diff src/protocols/oscar/oscar.c @ 10949:1adca5a37fb8

[gaim-migrate @ 12749] sf patch #1209197, from Evan Schoenberg "Consistency in text of authorization request dialogs" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 31 May 2005 23:04:33 +0000
parents f38bda97f981
children bf03a5271395
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Fri May 27 23:23:44 2005 +0000
+++ b/src/protocols/oscar/oscar.c	Tue May 31 23:04:33 2005 +0000
@@ -3832,7 +3832,10 @@
 		case 0x06: { /* Someone requested authorization */
 			if (i >= 6) {
 				struct name_data *data = g_new(struct name_data, 1);
-				gchar *dialog_msg = g_strdup_printf(_("The user %u wants to add you to their buddy list for the following reason:\n%s"), args->uin, msg2[5] ? msg2[5] : _("No reason given."));
+				gchar *dialog_msg = g_strdup_printf(
+													_("The user %u wants to add %s to their buddy list for the following reason:\n%s"), 
+													args->uin, gaim_account_get_username(gc->account),
+													(msg2[5] ? msg2[5] : _("No reason given.")));
 				gaim_debug_info("oscar",
 						   "Received an authorization request from UIN %u\n",
 						   args->uin);
@@ -6373,7 +6376,11 @@
 	else
 		nombre = g_strdup(sn);
 
-	dialog_msg = g_strdup_printf(_("The user %s wants to add you to their buddy list for the following reason:\n%s"), nombre, msg ? msg : _("No reason given."));
+	dialog_msg = g_strdup_printf(
+								 _("The user %s wants to add %s to their buddy list for the following reason:\n%s"), 
+								 nombre, gaim_account_get_username(gc->account),
+								 (msg ? msg : _("No reason given.")));
+
 	data = g_new(struct name_data, 1);
 	data->gc = gc;
 	data->name = g_strdup(sn);