Commit 6ce7276c authored by rswindell's avatar rswindell
Browse files

Fix bug introduced in rev 1.60: when searching for a file and a single file

matches the search spec, the 'D' batch-flagging command would invoke the
downloadfile() method which confusingly, doesn't actually download (send)
the file, but instead performs all the post-download functions needed. So
the user would just see "<filename> sent." and possibly lose some credits
without actually receiving the file.
parent 491b9fa1
......@@ -716,10 +716,9 @@ int sbbs_t::batchflagprompt(uint dirnum, file_t* bf, uint total
f.datoffset=bf[0].datoffset;
f.size=0;
getfiledat(&cfg,&f);
addtobatdl(&f);
if(ch=='D')
downloadfile(&f);
else
addtobatdl(&f);
start_batch_download();
CRLF;
return(2);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment