Mercurial > pidgin.yaz
diff src/protocols/msn/msn.c @ 4112:12552607e88c
[gaim-migrate @ 4327]
The alias, if available, is now used on the "___ has closed the
conversation window" message.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 21 Dec 2002 20:00:43 +0000 |
parents | ee884f1d7ae3 |
children | 474265997752 |
line wrap: on
line diff
--- a/src/protocols/msn/msn.c Sat Dec 21 19:33:54 2002 +0000 +++ b/src/protocols/msn/msn.c Sat Dec 21 20:00:43 2002 +0000 @@ -447,10 +447,17 @@ remove_chat_buddy(ms->chat, user, NULL); } else { char msgbuf[256]; + const char *username; struct conversation *cnv; + struct buddy *b; + + if ((b = find_buddy(gc, user)) != NULL) + username = b->show; + else + username = user; g_snprintf(msgbuf, sizeof(msgbuf), - _("%s has closed the conversation window"), user); + _("%s has closed the conversation window"), username); if ((cnv = find_conversation(user))) write_to_conv(cnv, msgbuf, WFLAG_SYSTEM, NULL, time(NULL), -1);