comparison libpurple/protocols/msn/slpcall.c @ 24965:bcedd3b2ca69

A patch from Thomas Gibson-Robinson to fix receiving buddy icons, custom emoticons and file transfers from WLM 9. I have a feeling this should really be a bitwise test (ie, flags | 0x20 == 0x20) but I can't really find many supportive docs for FT things and I'm no expert on these MSN SLP bits. Fixes #7180. Fixes #7294.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 19 Jan 2009 00:58:19 +0000
parents bceefbae1ca6
children 5e77f8512f5b
comparison
equal deleted inserted replaced
24964:8a5c0c5c71f9 24965:bcedd3b2ca69
204 204
205 slpcall = NULL; 205 slpcall = NULL;
206 body = slpmsg->buffer; 206 body = slpmsg->buffer;
207 body_len = slpmsg->size; 207 body_len = slpmsg->size;
208 208
209 if (slpmsg->flags == 0x0) 209 if (slpmsg->flags == 0x0 || slpmsg->flags == 0x1000000)
210 { 210 {
211 char *body_str; 211 char *body_str;
212 212
213 body_str = g_strndup((const char *)body, body_len); 213 body_str = g_strndup((const char *)body, body_len);
214 slpcall = msn_slp_sip_recv(slplink, body_str); 214 slpcall = msn_slp_sip_recv(slplink, body_str);
215 g_free(body_str); 215 g_free(body_str);
216 } 216 }
217 else if (slpmsg->flags == 0x20 || slpmsg->flags == 0x1000030) 217 else if (slpmsg->flags == 0x20 ||
218 slpmsg->flags == 0x1000020 ||
219 slpmsg->flags == 0x1000030)
218 { 220 {
219 slpcall = msn_slplink_find_slp_call_with_session_id(slplink, slpmsg->session_id); 221 slpcall = msn_slplink_find_slp_call_with_session_id(slplink, slpmsg->session_id);
220 222
221 if (slpcall != NULL) 223 if (slpcall != NULL)
222 { 224 {