mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 02:03:13 +02:00
xfer: fix crash on DCC send if option xfer.file.auto_accept_nicks is set (closes #781)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user