mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Fix DCC get when file size is 0, bug #494.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4462 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
b2f6d813a4
commit
a42b4202f2
@ -253,6 +253,10 @@ void sig_dccget_connected(GET_DCC_REC *dcc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
dcc->starttime = time(NULL);
|
dcc->starttime = time(NULL);
|
||||||
|
if (dcc->size == 0) {
|
||||||
|
dcc_close(DCC(dcc));
|
||||||
|
return;
|
||||||
|
}
|
||||||
dcc->tagread = g_input_add(dcc->handle, G_INPUT_READ,
|
dcc->tagread = g_input_add(dcc->handle, G_INPUT_READ,
|
||||||
(GInputFunction) sig_dccget_receive, dcc);
|
(GInputFunction) sig_dccget_receive, dcc);
|
||||||
signal_emit("dcc connected", 1, dcc);
|
signal_emit("dcc connected", 1, dcc);
|
||||||
|
Loading…
Reference in New Issue
Block a user