diff 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
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo_picture.c	Thu Aug 05 16:24:54 2004 +0000
+++ b/src/protocols/yahoo/yahoo_picture.c	Thu Aug 05 16:44:48 2004 +0000
@@ -102,7 +102,8 @@
 		l = l->next;
 	}
 
-	if (who && got_icon_info && url) {
+	/* Yahoo IM 6 spits out 0.png as the URL if the buddy icon is not set */
+	if (who && got_icon_info && url && !strncasecmp(url, "http://", 7)) {
 		/* TODO: make this work p2p, try p2p before the url */
 		struct yahoo_fetch_picture_data *data;
 		GaimBuddy *b = gaim_find_buddy(gc->account, who);