diff options
author | Timo Sirainen <cras@irssi.org> | 2002-10-14 15:26:26 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-10-14 15:26:26 +0000 |
commit | 55c2e7a066e700e23e15ba9f90d2aa02118b27dd (patch) | |
tree | b718ad720f46afbba1299e468719c3fb98df0455 /src/fe-common | |
parent | 4ed5e9adf6a353625b956c167188ecd3b1b11de2 (diff) | |
download | irssi-55c2e7a066e700e23e15ba9f90d2aa02118b27dd.zip |
/SET dcc_file_create_mode wasn't used. Also print strerror() message if
creation fails.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2949 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/irc/dcc/fe-dcc-get.c | 6 | ||||
-rw-r--r-- | src/fe-common/irc/dcc/module-formats.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/fe-common/irc/dcc/fe-dcc-get.c b/src/fe-common/irc/dcc/fe-dcc-get.c index 4c76e7cd..127191ed 100644 --- a/src/fe-common/irc/dcc/fe-dcc-get.c +++ b/src/fe-common/irc/dcc/fe-dcc-get.c @@ -72,9 +72,11 @@ static void dcc_closed(GET_DCC_REC *dcc) } } -static void dcc_error_file_create(GET_DCC_REC *dcc, const char *fname) +static void dcc_error_file_create(GET_DCC_REC *dcc, const char *fname, + const char *error) { - printformat(NULL, NULL, MSGLEVEL_DCC, IRCTXT_DCC_CANT_CREATE, fname); + printformat(NULL, NULL, MSGLEVEL_DCC, IRCTXT_DCC_CANT_CREATE, + fname, error); } diff --git a/src/fe-common/irc/dcc/module-formats.c b/src/fe-common/irc/dcc/module-formats.c index b6d47f55..873344ee 100644 --- a/src/fe-common/irc/dcc/module-formats.c +++ b/src/fe-common/irc/dcc/module-formats.c @@ -60,7 +60,7 @@ FORMAT_REC fecommon_irc_dcc_formats[] = { { "dcc_unknown_type", "{dcc DCC unknown type {hilight $0}}", 1, { 0 } }, { "dcc_invalid_ctcp", "{dcc DCC received CTCP {hilight $0} with invalid parameters from {nick $1}}", 4, { 0, 0, 0, 0 } }, { "dcc_connect_error", "{dcc DCC can't connect to {hilight $0} port {hilight $1}}", 2, { 0, 1 } }, - { "dcc_cant_create", "{dcc DCC can't create file {dccfile $0}}", 1, { 0 } }, + { "dcc_cant_create", "{dcc DCC can't create file {dccfile $0}: $1}", 2, { 0, 0 } }, { "dcc_rejected", "{dcc DCC $0 was rejected by {nick $1} [{hilight $2}]}", 3, { 0, 0, 0 } }, { "dcc_request_send", "{dcc DCC $0 request sent to {nick $1}: $2", 3, { 0, 0, 0 } }, { "dcc_close", "{dcc DCC $0 close for {nick $1} [{hilight $2}]}", 3, { 0, 0, 0 } }, |