aboutsummaryrefslogtreecommitdiff
path: root/irc/xchat/files/patch-autoresume
diff options
context:
space:
mode:
Diffstat (limited to 'irc/xchat/files/patch-autoresume')
-rw-r--r--irc/xchat/files/patch-autoresume17
1 files changed, 17 insertions, 0 deletions
diff --git a/irc/xchat/files/patch-autoresume b/irc/xchat/files/patch-autoresume
new file mode 100644
index 000000000000..fa01aaddf088
--- /dev/null
+++ b/irc/xchat/files/patch-autoresume
@@ -0,0 +1,17 @@
+--- src/common/dcc.c.orig Fri Oct 12 08:13:04 2001
++++ src/common/dcc.c Sat Nov 24 16:47:39 2001
+@@ -1292,8 +1292,12 @@
+ while (list)
+ {
+ d = list->data;
+- if (d != dcc && strcmp (d->destfile, dcc->destfile) == 0)
+- goto dontresume;
++ if (d->type == TYPE_RECV && d->dccstat != STAT_ABORTED &&
++ d->dccstat != STAT_DONE && d->dccstat != STAT_FAILED)
++ {
++ if (d != dcc && strcmp (d->destfile, dcc->destfile) == 0)
++ goto dontresume;
++ }
+ list = list->next;
+ }
+ dcc_resume (dcc);