Mercurial > pidgin.yaz
changeset 4068:29401c9ccc2a
[gaim-migrate @ 4280]
MSN users are now notified when the other party closes the IM window.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 13 Dec 2002 01:44:28 +0000 |
parents | bb4aabb9ba53 |
children | 5b56c42c2717 |
files | ChangeLog src/protocols/msn/msn.c |
diffstat | 2 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Dec 12 17:56:09 2002 +0000 +++ b/ChangeLog Fri Dec 13 01:44:28 2002 +0000 @@ -100,6 +100,8 @@ * Allow only people in buddy list privacy option added for AIM * Optional password on IRC accounts (Thanks, Christian Hammond) * Better supression of auto-responses (Thanks Joshua Blanton) + * MSN users are notified when the other party closes the conversation + window (Thanks, Christian Hammond) version 0.59 (06/24/2002): * Hungarian translation added (Thanks, Sutto Zoltan)
--- a/src/protocols/msn/msn.c Thu Dec 12 17:56:09 2002 +0000 +++ b/src/protocols/msn/msn.c Fri Dec 13 01:44:28 2002 +0000 @@ -439,12 +439,22 @@ if (ms->chat) add_chat_buddy(ms->chat, gc->username, NULL); } else if (!g_strncasecmp(buf, "BYE", 3)) { + char *user, *tmp = buf; + GET_NEXT(tmp); + user = tmp; + if (ms->chat) { - char *user, *tmp = buf; - GET_NEXT(tmp); - user = tmp; remove_chat_buddy(ms->chat, user, NULL); } else { + char msgbuf[256]; + struct conversation *cnv; + + g_snprintf(msgbuf, sizeof(msgbuf), + _("%s has closed the conversation window"), user); + + if ((cnv = find_conversation(user))) + write_to_conv(cnv, msgbuf, WFLAG_SYSTEM, NULL, time(NULL), -1); + msn_kill_switch(ms); return 0; }