# HG changeset patch # User Christian Hammond # Date 1040500843 0 # Node ID 12552607e88cd41cd575c4879a01290d8c09d474 # Parent ee884f1d7ae3b5b1592caef2fabbaeffa57c3162 [gaim-migrate @ 4327] The alias, if available, is now used on the "___ has closed the conversation window" message. committer: Tailor Script diff -r ee884f1d7ae3 -r 12552607e88c src/protocols/msn/msn.c --- 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);