summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer-config.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-10-05 18:11:39 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-10-05 18:11:39 +0200
commit3c0bdc18f3f99386f57be4cd8e84f99d465a0b20 (patch)
tree997f196c8f3cae2c00746e3710180aeb18f089a5 /src/plugins/xfer/xfer-config.c
parent6c23f632b12de9f43026b72626ccbc57cbbd9aa5 (diff)
downloadweechat-3c0bdc18f3f99386f57be4cd8e84f99d465a0b20.zip
xfer: add option xfer.file.download_temporary_suffix with default value ".part" (closes #1237)
Diffstat (limited to 'src/plugins/xfer/xfer-config.c')
-rw-r--r--src/plugins/xfer/xfer-config.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/xfer/xfer-config.c b/src/plugins/xfer/xfer-config.c
index ddab21d82..f36fb2d46 100644
--- a/src/plugins/xfer/xfer-config.c
+++ b/src/plugins/xfer/xfer-config.c
@@ -64,6 +64,7 @@ struct t_config_option *xfer_config_file_auto_rename;
struct t_config_option *xfer_config_file_auto_resume;
struct t_config_option *xfer_config_file_convert_spaces;
struct t_config_option *xfer_config_file_download_path;
+struct t_config_option *xfer_config_file_download_temporary_suffix;
struct t_config_option *xfer_config_file_upload_path;
struct t_config_option *xfer_config_file_use_nick_in_filename;
@@ -385,6 +386,14 @@ xfer_config_init ()
"(note: content is evaluated, see /help eval)"),
NULL, 0, 0, "%h/xfer", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ xfer_config_file_download_temporary_suffix = weechat_config_new_option (
+ xfer_config_file, ptr_section,
+ "download_temporary_suffix", "string",
+ N_("temporary filename suffix used during the transfer for a file "
+ "received, it is removed after successful transfer; "
+ "if empty string, no filename suffix is used during the transfer"),
+ NULL, 0, 0, ".part", NULL, 0,
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
xfer_config_file_upload_path = weechat_config_new_option (
xfer_config_file, ptr_section,
"upload_path", "string",