mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -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);
|
||||
if (dcc->size == 0) {
|
||||
dcc_close(DCC(dcc));
|
||||
return;
|
||||
}
|
||||
dcc->tagread = g_input_add(dcc->handle, G_INPUT_READ,
|
||||
(GInputFunction) sig_dccget_receive, dcc);
|
||||
signal_emit("dcc connected", 1, dcc);
|
||||
|
Loading…
Reference in New Issue
Block a user