diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-10-06 09:38:52 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-10-06 09:38:52 +0200 |
commit | 587f5bf15bdfb50ac712388cccc7ca4f851de5b8 (patch) | |
tree | 43112166b2fc5596335183bc6d82100ff67cfaf4 /src/plugins/irc | |
parent | 6e382d26a94a26d5d6034076fa6dbebbab336006 (diff) | |
download | weechat-587f5bf15bdfb50ac712388cccc7ca4f851de5b8.zip |
irc: use path from option xfer.file.upload_path to complete filename in command "/dcc send" (closes #60)
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-command.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index d4ca47ede..31a78be44 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -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", |