1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

xfer: make file transfer fail when option xfer.file.auto_rename is off and file already exists (closes #1633)

This commit is contained in:
Sébastien Helleu
2021-04-26 20:51:17 +02:00
parent bcd889cf90
commit 9f0e7fb47e
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ xfer_file_find_suffix (struct t_xfer *xfer)
return;
/* if auto rename is not set, then abort xfer */
if (!xfer_config_file_auto_rename)
if (!weechat_config_boolean (xfer_config_file_auto_rename))
{
xfer_close (xfer, XFER_STATUS_FAILED);
xfer_buffer_refresh (WEECHAT_HOTLIST_MESSAGE);