comparison src/protocols/yahoo/yahoo_picture.c @ 9329:d42f3e4fd7ad

[gaim-migrate @ 10137] We were ignoring an extra packet the server is sending now on joining a room, which has extra members in it. This makes us process it. We do so one at a time though, so it prints a has joined message for them, which sucks but oh well. This also fixes a "bug" where we were getting confused and thinking keys were values and values were keys. But the reason we were getting confused is pretty weird. I think the server was intentionally trying to confuse us this way, to hide extra data from older clients. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sun, 20 Jun 2004 19:18:42 +0000
parents f40233043b5a
children ba78e5a34bed
comparison
equal deleted inserted replaced
9328:33e6b2b92cfe 9329:d42f3e4fd7ad
230 { 230 {
231 struct yahoo_data *yd = gc->proto_data; 231 struct yahoo_data *yd = gc->proto_data;
232 struct yahoo_packet *pkt; 232 struct yahoo_packet *pkt;
233 char *buf; 233 char *buf;
234 234
235 if (!yd->picture_url) 235 if (!yd->picture_url) {
236 gaim_debug_warning("yahoo", "Attempted to send picture info without a picture\n");
236 return; 237 return;
238 }
237 239
238 pkt = yahoo_packet_new(YAHOO_SERVICE_PICTURE, YAHOO_STATUS_AVAILABLE, 0); 240 pkt = yahoo_packet_new(YAHOO_SERVICE_PICTURE, YAHOO_STATUS_AVAILABLE, 0);
239 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc)); 241 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc));
240 yahoo_packet_hash(pkt, 4, gaim_connection_get_display_name(gc)); 242 yahoo_packet_hash(pkt, 4, gaim_connection_get_display_name(gc));
241 yahoo_packet_hash(pkt, 5, who); 243 yahoo_packet_hash(pkt, 5, who);