diff src/protocols/msn/switchboard.c @ 6148:82e7eaa67406

[gaim-migrate @ 6622] A last-minute surprise to all of gaim's MSN users who wanted this feature. Chats can now be initiated by right-clicking an MSN user and choosing Initiate Chat. Note that chats in MSN don't work like chats elsewhere, because IMs and Chats in MSN are the exact same things, and we can't detect the number of users before connecting to the switchboard. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 16 Jul 2003 06:15:19 +0000
parents 98407c5019e9
children 8ba58b296cc1
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.c	Wed Jul 16 04:53:09 2003 +0000
+++ b/src/protocols/msn/switchboard.c	Wed Jul 16 06:15:19 2003 +0000
@@ -151,9 +151,9 @@
 	GaimConnection *gc = account->gc;
 	MsnSwitchBoard *swboard = servconn->data;
 
-	swboard->total_users = atoi(params[2]);
+	swboard->total_users = atoi(params[2]) + 1;
 
-	if (swboard->total_users > 1) {
+	if (swboard->total_users > 2) {
 		if (swboard->chat == NULL) {
 			GaimConversation *conv;
 
@@ -185,7 +185,7 @@
 
 	passport = params[0];
 
-	if (swboard->total_users == 1) {
+	if (swboard->total_users == 2 && swboard->chat == NULL) {
 		GaimConversation *conv;
 
 		conv = gaim_find_conversation(msn_user_get_passport(swboard->user));