aboutsummaryrefslogtreecommitdiffstats
path: root/irc_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_channel.c')
-rw-r--r--irc_channel.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/irc_channel.c b/irc_channel.c
index b597e809..ffcfbffb 100644
--- a/irc_channel.c
+++ b/irc_channel.c
@@ -238,8 +238,14 @@ int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu, gboolean silent, co
{
ic->flags &= ~IRC_CHANNEL_JOINED;
- if( ic->flags & IRC_CHANNEL_TEMP )
+ if( ic->irc->status & USTATUS_SHUTDOWN )
+ {
+ /* Don't do anything fancy when we're shutting down anyway. */
+ }
+ else if( ic->flags & IRC_CHANNEL_TEMP )
+ {
irc_channel_free_soon( ic );
+ }
else
{
/* Flush userlist now. The user won't see it anyway. */