comparison 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
comparison
equal deleted inserted replaced
4111:ee884f1d7ae3 4112:12552607e88c
445 445
446 if (ms->chat) { 446 if (ms->chat) {
447 remove_chat_buddy(ms->chat, user, NULL); 447 remove_chat_buddy(ms->chat, user, NULL);
448 } else { 448 } else {
449 char msgbuf[256]; 449 char msgbuf[256];
450 const char *username;
450 struct conversation *cnv; 451 struct conversation *cnv;
452 struct buddy *b;
453
454 if ((b = find_buddy(gc, user)) != NULL)
455 username = b->show;
456 else
457 username = user;
451 458
452 g_snprintf(msgbuf, sizeof(msgbuf), 459 g_snprintf(msgbuf, sizeof(msgbuf),
453 _("%s has closed the conversation window"), user); 460 _("%s has closed the conversation window"), username);
454 461
455 if ((cnv = find_conversation(user))) 462 if ((cnv = find_conversation(user)))
456 write_to_conv(cnv, msgbuf, WFLAG_SYSTEM, NULL, time(NULL), -1); 463 write_to_conv(cnv, msgbuf, WFLAG_SYSTEM, NULL, time(NULL), -1);
457 464
458 msn_kill_switch(ms); 465 msn_kill_switch(ms);