summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc-dcc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/irc-dcc.c b/src/irc/irc-dcc.c
index 103791aa2..83cb66450 100644
--- a/src/irc/irc-dcc.c
+++ b/src/irc/irc-dcc.c
@@ -424,6 +424,8 @@ dcc_close (t_irc_dcc *ptr_dcc, int status)
}
}
+ ptr_dcc->channel = NULL;
+
if (DCC_IS_CHAT(ptr_dcc->type))
channel_remove_dcc (ptr_dcc);