diff options
Diffstat (limited to 'src/irc/irc-channel.c')
-rw-r--r-- | src/irc/irc-channel.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/irc/irc-channel.c b/src/irc/irc-channel.c index 2b0fee6a6..0def12c92 100644 --- a/src/irc/irc-channel.c +++ b/src/irc/irc-channel.c @@ -98,12 +98,14 @@ channel_free (t_irc_server *server, t_irc_channel *channel) return; /* close DCC CHAT */ - if ((t_irc_dcc *)(channel->dcc_chat) && - (!DCC_ENDED(((t_irc_dcc *)(channel->dcc_chat))->status))) + if (channel->dcc_chat) { ((t_irc_dcc *)(channel->dcc_chat))->channel = NULL; - dcc_close ((t_irc_dcc *)(channel->dcc_chat), DCC_ABORTED); - dcc_redraw (1); + if (!DCC_ENDED(((t_irc_dcc *)(channel->dcc_chat))->status)) + { + dcc_close ((t_irc_dcc *)(channel->dcc_chat), DCC_ABORTED); + dcc_redraw (1); + } } /* remove channel from queue */ |