Skip to content

Commit

Permalink
irc: use path from option xfer.file.upload_path to complete filename …
Browse files Browse the repository at this point in the history
…in command "/dcc send" (closes #60)
  • Loading branch information
flashcode committed Oct 6, 2019
1 parent 6e382d2 commit 587f5bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog.adoc
Expand Up @@ -38,6 +38,7 @@ Bug fixes::
* core: fixed segfault during excessive evaluation in function string_repeat (issue #1400)
* buflist: fix extra spaces between buffers when conditions are used to hide buffers (regression introduced in version 2.6) (issue #1403)
* irc: remove option irc.network.channel_encode, add server option "charset_message" to control which part of the IRC message is decoded/encoded to the target charset (issue #832)
* irc: use path from option xfer.file.upload_path to complete filename in command "/dcc send" (issue #60)
* xfer: fix memory leak when a xfer is freed and when the plugin is unloaded

Tests::
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/irc/irc-command.c
Expand Up @@ -6515,7 +6515,8 @@ irc_command_init ()
" send file \"/home/foo/bar.txt\" to nick \"toto\":\n"
" /dcc send toto /home/foo/bar.txt"),
"chat %(nicks)"
" || send %(nicks) %(filename)",
" || send %(nicks) "
"%(filename:${modifier:eval_path_home,,${xfer.file.upload_path}})",
&irc_command_dcc, NULL, NULL);
weechat_hook_command (
"dehalfop",
Expand Down

0 comments on commit 587f5bf

Please sign in to comment.