changeset 6025:f515cef823f9

[gaim-migrate @ 6475] The right number of buddies always (that word is going to jinx me) appears in MSN chats. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 05 Jul 2003 07:01:42 +0000
parents a23a1d51f573
children 01dd6b652c22
files src/protocols/msn/switchboard.c
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.c	Sat Jul 05 06:53:15 2003 +0000
+++ b/src/protocols/msn/switchboard.c	Sat Jul 05 07:01:42 2003 +0000
@@ -84,12 +84,16 @@
 ans_cmd(MsnServConn *servconn, const char *command, const char **params,
 		 size_t param_count)
 {
+#if 0
 	GaimAccount *account = servconn->session->account;
+#endif
 	MsnSwitchBoard *swboard = servconn->data;
 
+#if 0
 	if (swboard->chat != NULL)
 		gaim_chat_add_user(GAIM_CHAT(swboard->chat),
 						   gaim_account_get_username(account), NULL);
+#endif
 
 	return send_clientcaps(swboard);
 }
@@ -159,10 +163,14 @@
 	swboard->total_users = atoi(params[2]);
 
 	if (swboard->total_users > 1) {
-		if (swboard->chat == NULL)
+		if (swboard->chat == NULL) {
 			swboard->chat = serv_got_joined_chat(gc, ++swboard->chat_id,
 												 "MSN Chat");
 
+			gaim_chat_add_user(GAIM_CHAT(swboard->chat),
+							   gaim_account_get_username(account), NULL);
+		}
+
 		gaim_chat_add_user(GAIM_CHAT(swboard->chat), params[3], NULL);
 	}
 
@@ -185,6 +193,8 @@
 											 "MSN Chat");
 		gaim_chat_add_user(GAIM_CHAT(swboard->chat),
 						   msn_user_get_passport(swboard->user), NULL);
+		gaim_chat_add_user(GAIM_CHAT(swboard->chat),
+						   gaim_account_get_username(account), NULL);
 
 		msn_user_unref(swboard->user);
 	}