changeset 25073:4dd866b83e8e

Fix file transfer to a user not in buddy list, defaulting to use v15 transfer method
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Sun, 13 Jul 2008 14:10:22 +0000
parents 63033139c590
children 91a7d0ad2021
files libpurple/protocols/yahoo/yahoo_filexfer.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_filexfer.c	Sat Jul 12 19:44:24 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo_filexfer.c	Sun Jul 13 14:10:22 2008 +0000
@@ -1050,7 +1050,10 @@
 	/* To determine if we should use yahoo p15 for transfer.  Check other user's
 	 * reported version, but if we're on Yahoo Japan, ignore it. */
 	if(yf && yf->version_id > 500000 && !yd->jp)
-		ver = 15; 
+		ver = 15;
+	/* Default to ver 15 if user isn't a friend */
+	if(!yf)
+		ver = 15;
 
 	g_return_if_fail(xfer != NULL);