aboutsummaryrefslogtreecommitdiffstats
path: root/irc_channel.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-28 01:07:46 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-28 01:07:46 +0100
commit1c40aa73b52e4507404c82056170069a859fb0cb (patch)
tree6dd325cd318c645e16c6d01fa8296cd17aaabaa4 /irc_channel.c
parent134a02cd563c395d0026d9d1b07eb136394798ca (diff)
Mark nameless groupchat channels as temporary so they don't stick around
forever.
Diffstat (limited to 'irc_channel.c')
-rw-r--r--irc_channel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/irc_channel.c b/irc_channel.c
index f0e564bc..534f49c4 100644
--- a/irc_channel.c
+++ b/irc_channel.c
@@ -201,7 +201,12 @@ int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu, gboolean silent, co
irc_send_part( ic, iu, msg );
if( iu == ic->irc->user )
+ {
ic->flags &= ~IRC_CHANNEL_JOINED;
+
+ if( ic->flags & IRC_CHANNEL_TEMP )
+ irc_channel_free( ic );
+ }
return 1;
}