• src/sbbs3/bat_xfer.cpp

    From Rob Swindell (in GitKrake@VERT to Git commit to main/sbbs/master on Thursday, March 02, 2023 18:56:00
    https://gitlab.synchro.net/main/sbbs/-/commit/5d1d586fd74709f9cd1a9fc3
    Modified Files:
    src/sbbs3/bat_xfer.cpp
    Log Message:
    Better access enforcement to files in batch download queues

    If a file gets added to a batch download queue that a user doesn't have download-access to (at the time of batch download), deal with that gracefully and consistently.

    start_batch_download():
    - Now checks current user access to download the file in both single-file and batch modes
    - Now performs credit-check in single-file mode (wasn't doing so previously)
    - totalsize of multi-file batch download queue is now calculated again (apparently removed/broken in the new filebase conversion of v3.19), so download ETA should be calculated more accurately (?) again
    - Use gettimetodl() to calculate each file's download time for multi-file downloads
    - Using new putnode_download() method to write node downloading "action" and ETA-in-aux fields
    - The node status wasn't being updated at all before start of download in single-file mode - fixed

    create_batchdn_lst() :
    - Checks each file still downloadable by the user and if not, removes from the queue (and the generated list file).
    - Performs credit check and removes files that exceed available user credit
    - returns true only when 1 or more files is added to the batch download list file

    addtobatdl()
    - Removed redundant 'D' restriction check - this is handled by can_user_download() check already.
    - Use the 'reason' out parameter from can_user_download() to determine which error string to display (not always CantDownloadFromDir).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/master on Friday, March 03, 2023 18:00:00
    https://gitlab.synchro.net/main/sbbs/-/commit/9a79d265b21f513e06c98907
    Modified Files:
    src/sbbs3/bat_xfer.cpp
    Log Message:
    Fix missing 'autohang' argument in call to protocol()

    Caught by a GCC warning.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/master on Tuesday, March 05, 2024 15:37:00
    https://gitlab.synchro.net/main/sbbs/-/commit/e487e3cdb5ea842006d5dd6d
    Modified Files:
    src/sbbs3/bat_xfer.cpp
    Log Message:
    Fix warning about impossible condition.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wednesday, October 16, 2024 00:09:51
    https://gitlab.synchro.net/main/sbbs/-/commit/1f506c96b8e314e9089f63d3
    Modified Files:
    src/sbbs3/bat_xfer.cpp
    Log Message:
    Fix silliness discovered in conversion to JavaScript

    So apparently 23 years ago (almost 24), I made a typo in commit
    7731d16dbbcb7 that broke the batch transfer menu for RIP users.

    Also elminated silly/unnecessary loop-control variable ('done').

    I'm working on a port to JS and noticed these oddities (so far).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net