Fri, 13 Dec 2002 01:44:28 +0000
[gaim-migrate @ 4280]
MSN users are now notified when the other party closes the IM window.
| ChangeLog | file | annotate | diff | comparison | revisions | |
| src/protocols/msn/msn.c | file | annotate | diff | comparison | revisions |
--- 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; }