comparison src/protocols/yahoo/yahoo_picture.c @ 9675:ba78e5a34bed

[gaim-migrate @ 10527] A patch from Bleeter to reduce DNS lookups dealing with Yahoo! buddy icons. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 05 Aug 2004 16:44:48 +0000
parents d42f3e4fd7ad
children 2faebefa455e
comparison
equal deleted inserted replaced
9674:a049733e41f3 9675:ba78e5a34bed
100 } 100 }
101 101
102 l = l->next; 102 l = l->next;
103 } 103 }
104 104
105 if (who && got_icon_info && url) { 105 /* Yahoo IM 6 spits out 0.png as the URL if the buddy icon is not set */
106 if (who && got_icon_info && url && !strncasecmp(url, "http://", 7)) {
106 /* TODO: make this work p2p, try p2p before the url */ 107 /* TODO: make this work p2p, try p2p before the url */
107 struct yahoo_fetch_picture_data *data; 108 struct yahoo_fetch_picture_data *data;
108 GaimBuddy *b = gaim_find_buddy(gc->account, who); 109 GaimBuddy *b = gaim_find_buddy(gc->account, who);
109 if (b && (checksum == gaim_blist_node_get_int((GaimBlistNode*)b, YAHOO_ICON_CHECKSUM_KEY))) 110 if (b && (checksum == gaim_blist_node_get_int((GaimBlistNode*)b, YAHOO_ICON_CHECKSUM_KEY)))
110 return; 111 return;