diff options
author | LemonBoy <thatlemon@gmail.com> | 2017-02-21 15:17:37 +0100 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2017-02-21 15:17:37 +0100 |
commit | db85ab7c90f23e00cd444728f6a5b3d1f63254df (patch) | |
tree | 19383f2014f935b15c5ef673361b4f129264f394 /src/irc/dcc | |
parent | 540639e0faee2dac9ff60fcf5e2ab0334a1ad5d9 (diff) | |
download | irssi-db85ab7c90f23e00cd444728f6a5b3d1f63254df.zip |
Quote the filename when dcc requests are auto accepted.
PR #453 forces the user to quote the filenames given to /DCC commands
when they contain spaces but the autoget functionality didn't get
updated so the filename was always passed without quotes.
Closes #656.
Diffstat (limited to 'src/irc/dcc')
-rw-r--r-- | src/irc/dcc/dcc-autoget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc-autoget.c b/src/irc/dcc/dcc-autoget.c index de23a5d1..995b3e04 100644 --- a/src/irc/dcc/dcc-autoget.c +++ b/src/irc/dcc/dcc-autoget.c @@ -70,7 +70,7 @@ static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr) file = dcc_get_download_path(dcc->arg); str = g_strdup_printf(settings_get_bool("dcc_autoresume") && stat(file, &statbuf) == 0 ? - "RESUME %s %s" : "GET %s %s", + "RESUME %s \"%s\"" : "GET %s \"%s\"", dcc->nick, dcc->arg); signal_emit("command dcc", 2, str, dcc->server); g_free(file); |