mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 08:32:07 +02:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue