1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 18:53:12 +02:00

Added message on server buffer when DCC file transfer failed (or was aborted)

This commit is contained in:
Sebastien Helleu
2005-07-12 17:17:37 +00:00
parent 6b12f19083
commit 94a3b5e1ae
8 changed files with 170 additions and 170 deletions
+3 -2
View File
@@ -182,7 +182,7 @@ dcc_close (t_irc_dcc *ptr_dcc, int status)
ptr_dcc->status = status;
if (status == DCC_DONE)
if ((status == DCC_DONE) || (status == DCC_ABORTED) || (status == DCC_FAILED))
{
if (DCC_IS_FILE(ptr_dcc->type))
{
@@ -205,7 +205,8 @@ dcc_close (t_irc_dcc *ptr_dcc, int status)
COLOR_WIN_CHAT_NICK,
"%s",
ptr_dcc->nick);
gui_printf (ptr_dcc->server->buffer, _(": ok!\n"));
gui_printf (ptr_dcc->server->buffer,
(status == DCC_DONE) ? _(": ok!\n") : _(": FAILED\n"));
}
}
if (status == DCC_ABORTED)