Skip to content
Snippets Groups Projects
  1. Mar 04, 2023
  2. Mar 03, 2023
    • Rob Swindell's avatar
      Better access enforcement to files in batch download queues · 5d1d586f
      Rob Swindell authored
      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).
      5d1d586f
    • Rob Swindell's avatar
      Remove defunct files from batch download queue during logon · c0ef762a
      Rob Swindell authored
      If a user doesn't have access to download a file that's in their batch queue, remove it without saying anything to the user (but log a notice-level message about it) during logon. Files that no longer exist in the filebase are treated the same way.
      c0ef762a
    • Rob Swindell's avatar
      Use the new putnode_downloading() function · 345bd83b
      Rob Swindell authored
      Eliminate some copy/pasta.
      345bd83b
    • Rob Swindell's avatar
      Avoid possible divide-by-zero in gettimetodl() · 9a57677a
      Rob Swindell authored
      Default to 100000 (cps) if passed a rate_cps argument value of 0.
      9a57677a
    • Rob Swindell's avatar
      Create sbbs_t::putnode_downloading() · 8de13f8e
      Rob Swindell authored
      Migrated from sbbs_t::start_batch_download(), this just calculates the ETA (of transfer completion) and writes to the node's aux field in the proper format.
      8de13f8e
    • Rob Swindell's avatar
      The NoAccess* text.dat strings are not appropriate 'reason' codes · 14125aa4
      Rob Swindell authored
      These text.dat strings require an argument (and normally used with the NOACCESS @-code which uses the noaccess_str and noaccess_val member variables), so not appropriate to use as a reason code here. Use more generic (no argument) text.dat item numbers instead.
      14125aa4
    • Rob Swindell's avatar
      Merge branch 'ddmsgreader_forward_dont_prepend_fwd' into 'master' · 0f28462d
      Rob Swindell authored
      DDMsgReader: Don't prepend "Fwd: " to forwarded messages
      
      See merge request !263
      0f28462d
    • Eric Oulashin's avatar
  3. Mar 02, 2023
  4. Feb 28, 2023
  5. Feb 27, 2023
  6. Feb 26, 2023
Loading