comparison 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
comparison
equal deleted inserted replaced
6147:084f6c031783 6148:82e7eaa67406
149 { 149 {
150 GaimAccount *account = servconn->session->account; 150 GaimAccount *account = servconn->session->account;
151 GaimConnection *gc = account->gc; 151 GaimConnection *gc = account->gc;
152 MsnSwitchBoard *swboard = servconn->data; 152 MsnSwitchBoard *swboard = servconn->data;
153 153
154 swboard->total_users = atoi(params[2]); 154 swboard->total_users = atoi(params[2]) + 1;
155 155
156 if (swboard->total_users > 1) { 156 if (swboard->total_users > 2) {
157 if (swboard->chat == NULL) { 157 if (swboard->chat == NULL) {
158 GaimConversation *conv; 158 GaimConversation *conv;
159 159
160 conv = gaim_find_conversation(msn_user_get_passport(swboard->user)); 160 conv = gaim_find_conversation(msn_user_get_passport(swboard->user));
161 161
183 MsnSwitchBoard *swboard = servconn->data; 183 MsnSwitchBoard *swboard = servconn->data;
184 const char *passport; 184 const char *passport;
185 185
186 passport = params[0]; 186 passport = params[0];
187 187
188 if (swboard->total_users == 1) { 188 if (swboard->total_users == 2 && swboard->chat == NULL) {
189 GaimConversation *conv; 189 GaimConversation *conv;
190 190
191 conv = gaim_find_conversation(msn_user_get_passport(swboard->user)); 191 conv = gaim_find_conversation(msn_user_get_passport(swboard->user));
192 192
193 swboard->chat = serv_got_joined_chat(gc, ++swboard->chat_id, 193 swboard->chat = serv_got_joined_chat(gc, ++swboard->chat_id,