aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-01 00:15:44 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-01 00:15:44 +0100
commit9052bc147b30a08c8df6799df09b01f922c10be7 (patch)
treec285863ae1beed09ab135ded3b45342d516fbc4d /irc_im.c
parentd7f850037c6288b5a2eebae789ed0247d0e5f7b3 (diff)
Flush channels when the user leaves them. Also, don't update a control
channel if the user isn't in it.
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c3
1 files changed, 2 insertions, 1 deletions
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;