diff 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
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Sat Jul 05 07:01:42 2003 +0000
+++ b/src/protocols/msn/msn.c	Sat Jul 05 07:16:22 2003 +0000
@@ -1101,10 +1101,10 @@
 	GaimAccount *account = gaim_connection_get_account(gc);
 	MsnSession *session = gc->proto_data;
 	MsnSwitchBoard *swboard;
-	
+
 	swboard = msn_session_find_switch_with_passport(session, who);
 
-	if (swboard != NULL) {
+	if (swboard != NULL && swboard->chat == NULL) {
 		char sendbuf[256];
 
 		g_snprintf(sendbuf, sizeof(sendbuf), "BYE %s\r\n",