changeset 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 a049733e41f3
children f83a80c25703
files COPYRIGHT src/protocols/yahoo/yahoo_picture.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Thu Aug 05 16:24:54 2004 +0000
+++ b/COPYRIGHT	Thu Aug 05 16:44:48 2004 +0000
@@ -169,6 +169,7 @@
 Matt Wilson
 Justin Wood
 Ximian
+Bleeter Yaluser
 Jared Yanovich
 Timmy Yee
 Nickolai Zeldovich
--- 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);