forked from PsychoticNinja/irssi
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.
This commit is contained in:
parent
540639e0fa
commit
db85ab7c90
@ -70,7 +70,7 @@ static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr)
|
|||||||
file = dcc_get_download_path(dcc->arg);
|
file = dcc_get_download_path(dcc->arg);
|
||||||
str = g_strdup_printf(settings_get_bool("dcc_autoresume") &&
|
str = g_strdup_printf(settings_get_bool("dcc_autoresume") &&
|
||||||
stat(file, &statbuf) == 0 ?
|
stat(file, &statbuf) == 0 ?
|
||||||
"RESUME %s %s" : "GET %s %s",
|
"RESUME %s \"%s\"" : "GET %s \"%s\"",
|
||||||
dcc->nick, dcc->arg);
|
dcc->nick, dcc->arg);
|
||||||
signal_emit("command dcc", 2, str, dcc->server);
|
signal_emit("command dcc", 2, str, dcc->server);
|
||||||
g_free(file);
|
g_free(file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user