diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-08-20 19:52:47 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-08-20 19:52:47 +0200 |
commit | 2f0d39f98de30c7b38210a8f3abac57b240d5113 (patch) | |
tree | 9b5647b8e34ef692db73a8687317ac9d337b1847 /src | |
parent | c2ea70c3e9ac41a5dcb4a643f6872b4ecf8dce47 (diff) | |
download | weechat-2f0d39f98de30c7b38210a8f3abac57b240d5113.zip |
xfer: fix crash on DCC send if option xfer.file.auto_accept_nicks is set (closes #781)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/xfer/xfer.c | 3 |
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) |