diff options
author | Sulabh Mahajan <sulabh@pidgin.im> | 2008-07-13 14:10:22 +0000 |
---|---|---|
committer | Sulabh Mahajan <sulabh@pidgin.im> | 2008-07-13 14:10:22 +0000 |
commit | 7ba4c0b0fa634591d46a49ac0d29d9abe973fa02 (patch) | |
tree | 06eedbe65e2432e85bb5fd449f1375f7c01b6a46 | |
parent | 90653ec4cf0334626fb8acf167d4bdf27df8870e (diff) | |
download | pidgin-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.c | 5 |
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); |