From 62fd3ac1804d5d45bc2302ceac9ee9c7ef372e1a Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Mon, 6 Mar 2017 11:27:55 +0100 Subject: Revert "Quote the filename when dcc requests are auto accepted." --- src/irc/dcc/dcc-autoget.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/irc/dcc') diff --git a/src/irc/dcc/dcc-autoget.c b/src/irc/dcc/dcc-autoget.c index 21417211..de23a5d1 100644 --- a/src/irc/dcc/dcc-autoget.c +++ b/src/irc/dcc/dcc-autoget.c @@ -23,7 +23,6 @@ #include "masks.h" #include "settings.h" #include "servers.h" -#include "misc.h" #include "dcc-get.h" @@ -31,7 +30,7 @@ static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr) { struct stat statbuf; const char *masks; - char *str, *file, *esc_arg; + char *str, *file; int max_size; if (!IS_DCC_GET(dcc)) return; @@ -69,14 +68,11 @@ static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr) /* ok. but do we want/need to resume? */ file = dcc_get_download_path(dcc->arg); - /* we have to escape the quotes as the whole file name gets quoted */ - esc_arg = escape_string(dcc->arg, "\""); str = g_strdup_printf(settings_get_bool("dcc_autoresume") && stat(file, &statbuf) == 0 ? - "RESUME %s \"%s\"" : "GET %s \"%s\"", - dcc->nick, esc_arg); + "RESUME %s %s" : "GET %s %s", + dcc->nick, dcc->arg); signal_emit("command dcc", 2, str, dcc->server); - g_free(esc_arg); g_free(file); g_free(str); } -- cgit v1.2.3