diff --git a/ChangeLog.adoc b/ChangeLog.adoc index c0d44ebf4..254ab3822 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -40,6 +40,7 @@ Bug fixes:: * api: fix crash in function string_split_command() when the separator is not a semicolon (issue #731) * irc: fix NULL pointer dereference in 734 command callback (issue #738) * relay: return an empty hdata when the requested hdata or pointer is not found (issue #767) + * xfer: fix crash on DCC send if option xfer.file.auto_accept_nicks is set (issue #781) Documentation:: 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)