summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSulabh Mahajan <sulabh@pidgin.im>2008-07-13 14:10:22 +0000
committerSulabh Mahajan <sulabh@pidgin.im>2008-07-13 14:10:22 +0000
commit7ba4c0b0fa634591d46a49ac0d29d9abe973fa02 (patch)
tree06eedbe65e2432e85bb5fd449f1375f7c01b6a46
parent90653ec4cf0334626fb8acf167d4bdf27df8870e (diff)
downloadpidgin-7ba4c0b0fa634591d46a49ac0d29d9abe973fa02.tar.gz
Fix file transfer to a user not in buddy list, defaulting to use v15
transfer method
-rw-r--r--libpurple/protocols/yahoo/yahoo_filexfer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpurple/protocols/yahoo/yahoo_filexfer.c b/libpurple/protocols/yahoo/yahoo_filexfer.c
index adf45aaade..28e70694c9 100644
--- a/libpurple/protocols/yahoo/yahoo_filexfer.c
+++ b/libpurple/protocols/yahoo/yahoo_filexfer.c
@@ -1050,7 +1050,10 @@ void yahoo_send_file(PurpleConnection *gc, const char *who, const char *file)
/* 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);