diff src/protocols/msn/userlist.c @ 9210:62b601ddb4bc

[gaim-migrate @ 10005] WORK!!! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 06 Jun 2004 05:07:54 +0000
parents ef7360cb07a0
children 74c81f56b0a5
line wrap: on
line diff
--- a/src/protocols/msn/userlist.c	Sun Jun 06 05:01:16 2004 +0000
+++ b/src/protocols/msn/userlist.c	Sun Jun 06 05:07:54 2004 +0000
@@ -80,9 +80,21 @@
 	pa->who = g_strdup(passport);
 	pa->gc  = gc;
 
-	msg = g_strdup_printf(
-			   _("The user %s (%s) wants to add %s to his or her buddy list."),
-			   passport, friendly, gaim_account_get_username(gc->account));
+	if (friendly != NULL)
+	{
+		msg = g_strdup_printf(
+				   _("The user %s (%s) wants to add %s to his or her "
+					 "buddy list."),
+				   passport, friendly,
+				   gaim_account_get_username(gc->account));
+	}
+	else
+	{
+		msg = g_strdup_printf(
+				   _("The user %s wants to add %s to his or "
+					 "her buddy list."),
+				   passport, gaim_account_get_username(gc->account));
+	}
 
 	gaim_request_action(gc, NULL, msg, NULL, 0, pa, 2,
 						_("Authorize"), G_CALLBACK(msn_accept_add_cb),