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:
+3
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user