From 51ecdb8d1bfa964130781d84ad9847b131046a00 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Mon, 12 Oct 2015 17:22:52 +1100 Subject: [PATCH] Re-add code for DCC CHAT autoget mistakenly removed in [be6bd5aca] --- source/dcc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/dcc.c b/source/dcc.c index 8d0a665..02ed9b5 100644 --- a/source/dcc.c +++ b/source/dcc.c @@ -1432,6 +1432,10 @@ void register_dcc_type(char *nick, char *type, char *description, char *address, put_it("%s", convert_output_format("$G %RDCC%n Unable to open $0-", "%s", fullname)); } } + + if (Ctype == DCC_CHAT && autoget) + dcc_create(nick, n->filename, NULL, n->filesize, 0, Ctype, DCC_OFFER, func); + reset_display_target(); new_free(&fullname); }