Mercurial > pidgin.yaz
comparison src/protocols/msn/msn.c @ 6026:01dd6b652c22
[gaim-migrate @ 6476]
When a MSN user you're currently talking to in an IM window invites
somebody else into that (since IMs and chats are the same thing in MSN),
your IM window is closed and a chat window takes its place. Ugly, I hate
it, but it's better than having both open, and this will all become just
neato when the conversation API is rewritten to allow hybrid IM/Chat
windows.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 05 Jul 2003 07:16:22 +0000 |
parents | a23a1d51f573 |
children | 8c44020a958e |
comparison
equal
deleted
inserted
replaced
6025:f515cef823f9 | 6026:01dd6b652c22 |
---|---|
1099 msn_convo_closed(GaimConnection *gc, char *who) | 1099 msn_convo_closed(GaimConnection *gc, char *who) |
1100 { | 1100 { |
1101 GaimAccount *account = gaim_connection_get_account(gc); | 1101 GaimAccount *account = gaim_connection_get_account(gc); |
1102 MsnSession *session = gc->proto_data; | 1102 MsnSession *session = gc->proto_data; |
1103 MsnSwitchBoard *swboard; | 1103 MsnSwitchBoard *swboard; |
1104 | 1104 |
1105 swboard = msn_session_find_switch_with_passport(session, who); | 1105 swboard = msn_session_find_switch_with_passport(session, who); |
1106 | 1106 |
1107 if (swboard != NULL) { | 1107 if (swboard != NULL && swboard->chat == NULL) { |
1108 char sendbuf[256]; | 1108 char sendbuf[256]; |
1109 | 1109 |
1110 g_snprintf(sendbuf, sizeof(sendbuf), "BYE %s\r\n", | 1110 g_snprintf(sendbuf, sizeof(sendbuf), "BYE %s\r\n", |
1111 gaim_account_get_username(account)); | 1111 gaim_account_get_username(account)); |
1112 | 1112 |