From 9052bc147b30a08c8df6799df09b01f922c10be7 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Thu, 1 Jul 2010 00:15:44 +0100 Subject: Flush channels when the user leaves them. Also, don't update a control channel if the user isn't in it. --- irc_im.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'irc_im.c') diff --git a/irc_im.c b/irc_im.c index 268fb176..5f33e579 100644 --- a/irc_im.c +++ b/irc_im.c @@ -130,7 +130,8 @@ void bee_irc_channel_update( irc_t *irc, irc_channel_t *ic, irc_user_t *iu ) { ic = l->data; /* TODO: Just add a type flag or so.. */ - if( ic->f == irc->default_channel->f ) + if( ic->f == irc->default_channel->f && + ( ic->flags & IRC_CHANNEL_JOINED ) ) bee_irc_channel_update( irc, ic, iu ); } return; -- cgit v1.2.3