diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-04-25 19:22:39 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-04-25 19:22:39 +0000 |
commit | a42b4202f2ac1afe6f4926fd45e4e04581437003 (patch) | |
tree | 8c72f32f28d492d8679ec10e8a851b80f9bd8bfe /src/irc | |
parent | b2f6d813a47ed9f0090c4362d180c0f37d5457ff (diff) | |
download | irssi-a42b4202f2ac1afe6f4926fd45e4e04581437003.zip |
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
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/dcc/dcc-get.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-get.c b/src/irc/dcc/dcc-get.c index fde094f4..bd70c1bc 100644 --- a/src/irc/dcc/dcc-get.c +++ b/src/irc/dcc/dcc-get.c @@ -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); |