From 77dccacd0215aa51edf755886d39d94ed30b03af Mon Sep 17 00:00:00 2001 From: Hubert Terlecki Date: Wed, 15 Jun 2016 15:45:50 +0200 Subject: dcc: Fix resuming with DCC GET Fixes #1746 Closes #1747 --- src/common/dcc.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/common/dcc.c') diff --git a/src/common/dcc.c b/src/common/dcc.c index 02cbeb00..dc5ec2fe 100644 --- a/src/common/dcc.c +++ b/src/common/dcc.c @@ -2212,10 +2212,17 @@ dcc_get_nick (struct session *sess, char *nick) { if (dcc->dccstat == STAT_QUEUED && dcc->type == TYPE_RECV) { - dcc->resumable = 0; - dcc->pos = 0; - dcc->ack = 0; - dcc_connect (dcc); + update_is_resumable (dcc); + if (prefs.hex_dcc_auto_resume && dcc->resumable) + { + dcc_resume (dcc); + } + else + { + dcc->pos = 0; + dcc->ack = 0; + dcc_connect (dcc); + } return; } } -- cgit 1.4.1