taskWeeChat - Tasks: task #13036, Allow variables in...

 
 

task #13036: Allow variables in xfer.file.download_path

Submitter:  WakiMiko <wakimiko>
Submitted:  Mon 13 Jan 2014 06:12:54 PM UTC
   
 
Category:  xfer plugin Should Start On:  Mon 13 Jan 2014 12:00:00 AM UTC
Should be Finished on:  Mon 13 Jan 2014 12:00:00 AM UTC Priority:  * 5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Percent Complete:  0%
Originator Name:  Open/Closed:  Open
Planned Release:  None IRC nick: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 13 Jan 2014 06:12:54 PM UTC, original submission:  

It would be nice if the "xfer.file.download_path" setting allowed variables, kinda like the logger plugin already does for "logger.file.mask".

Variables that come to mind:
$nick - The user that is sending the file.
$server - The IRC server.
$filename - The name of the file you are receiving. This could also replace the "xfer.file.use_nick_in_filename" option.
$size - The size of the file.
$ip - The IP address of the sender.
Maybe date specifiers would be useful too.

With this it would be possible to sort received files by server, nickname or both.

E.g.: Setting "xfer.file.download_path" to "~/download/$server/$nick-$filename" would sort received files in directories by server and prefix the filename with the sending nick.




WakiMiko <wakimiko>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wakimiko (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code