summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/xfer/xfer.c')
-rw-r--r--src/plugins/xfer/xfer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/xfer/xfer.c b/src/plugins/xfer/xfer.c
index 2032a29f6..7ffd7cf5b 100644
--- a/src/plugins/xfer/xfer.c
+++ b/src/plugins/xfer/xfer.c
@@ -823,7 +823,8 @@ xfer_new (const char *plugin_name, const char *plugin_id,
* auto-accept file/chat if nick is auto-accepted, or if file/chat is
* auto-accepted
*/
- if (xfer_nick_auto_accepted (new_xfer->plugin_id, new_xfer->remote_nick)
+ if ((XFER_IS_RECV(type)
+ && xfer_nick_auto_accepted (new_xfer->plugin_id, new_xfer->remote_nick))
|| ((type == XFER_TYPE_FILE_RECV)
&& weechat_config_boolean (xfer_config_file_auto_accept_files))
|| ((type == XFER_TYPE_CHAT_RECV)