Mercurial > pidgin.yaz
comparison src/protocols/msn/switchboard.c @ 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 | fb5d2ede88e7 |
children | 01dd6b652c22 |
comparison
equal
deleted
inserted
replaced
6024:a23a1d51f573 | 6025:f515cef823f9 |
---|---|
82 **************************************************************************/ | 82 **************************************************************************/ |
83 static gboolean | 83 static gboolean |
84 ans_cmd(MsnServConn *servconn, const char *command, const char **params, | 84 ans_cmd(MsnServConn *servconn, const char *command, const char **params, |
85 size_t param_count) | 85 size_t param_count) |
86 { | 86 { |
87 #if 0 | |
87 GaimAccount *account = servconn->session->account; | 88 GaimAccount *account = servconn->session->account; |
88 MsnSwitchBoard *swboard = servconn->data; | 89 #endif |
89 | 90 MsnSwitchBoard *swboard = servconn->data; |
91 | |
92 #if 0 | |
90 if (swboard->chat != NULL) | 93 if (swboard->chat != NULL) |
91 gaim_chat_add_user(GAIM_CHAT(swboard->chat), | 94 gaim_chat_add_user(GAIM_CHAT(swboard->chat), |
92 gaim_account_get_username(account), NULL); | 95 gaim_account_get_username(account), NULL); |
96 #endif | |
93 | 97 |
94 return send_clientcaps(swboard); | 98 return send_clientcaps(swboard); |
95 } | 99 } |
96 | 100 |
97 static gboolean | 101 static gboolean |
157 MsnSwitchBoard *swboard = servconn->data; | 161 MsnSwitchBoard *swboard = servconn->data; |
158 | 162 |
159 swboard->total_users = atoi(params[2]); | 163 swboard->total_users = atoi(params[2]); |
160 | 164 |
161 if (swboard->total_users > 1) { | 165 if (swboard->total_users > 1) { |
162 if (swboard->chat == NULL) | 166 if (swboard->chat == NULL) { |
163 swboard->chat = serv_got_joined_chat(gc, ++swboard->chat_id, | 167 swboard->chat = serv_got_joined_chat(gc, ++swboard->chat_id, |
164 "MSN Chat"); | 168 "MSN Chat"); |
169 | |
170 gaim_chat_add_user(GAIM_CHAT(swboard->chat), | |
171 gaim_account_get_username(account), NULL); | |
172 } | |
165 | 173 |
166 gaim_chat_add_user(GAIM_CHAT(swboard->chat), params[3], NULL); | 174 gaim_chat_add_user(GAIM_CHAT(swboard->chat), params[3], NULL); |
167 } | 175 } |
168 | 176 |
169 return TRUE; | 177 return TRUE; |
183 if (swboard->total_users == 1) { | 191 if (swboard->total_users == 1) { |
184 swboard->chat = serv_got_joined_chat(gc, ++swboard->chat_id, | 192 swboard->chat = serv_got_joined_chat(gc, ++swboard->chat_id, |
185 "MSN Chat"); | 193 "MSN Chat"); |
186 gaim_chat_add_user(GAIM_CHAT(swboard->chat), | 194 gaim_chat_add_user(GAIM_CHAT(swboard->chat), |
187 msn_user_get_passport(swboard->user), NULL); | 195 msn_user_get_passport(swboard->user), NULL); |
196 gaim_chat_add_user(GAIM_CHAT(swboard->chat), | |
197 gaim_account_get_username(account), NULL); | |
188 | 198 |
189 msn_user_unref(swboard->user); | 199 msn_user_unref(swboard->user); |
190 } | 200 } |
191 | 201 |
192 if (swboard->chat != NULL) | 202 if (swboard->chat != NULL) |