Mercurial > pidgin.yaz
changeset 13836:9af607a0108f
[gaim-migrate @ 16285]
Fix a case of a file transfer "system message" notification where we were not looking up an alias like everywhere else in this file.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 19 Jun 2006 06:23:20 +0000 |
parents | f1dd1555b39c |
children | 1a095ac881ce |
files | src/ft.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ft.c Mon Jun 19 06:22:26 2006 +0000 +++ b/src/ft.c Mon Jun 19 06:23:20 2006 +0000 @@ -388,8 +388,9 @@ gaim_xfer_get_status(xfer) == GAIM_XFER_STATUS_ACCEPTED) { gchar* message = NULL; + GaimBuddy *buddy = gaim_find_buddy(xfer->account, xfer->who); message = g_strdup_printf(_("%s is offering to send file %s"), - xfer->who, gaim_xfer_get_filename(xfer)); + buddy ? gaim_buddy_get_alias(buddy) : xfer->who, gaim_xfer_get_filename(xfer)); gaim_xfer_conversation_write(xfer, message, FALSE); g_free(message); /* Ask for a filename to save to if it's not already given by a plugin */