diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-01 00:15:44 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-01 00:15:44 +0100 |
commit | 9052bc147b30a08c8df6799df09b01f922c10be7 (patch) | |
tree | c285863ae1beed09ab135ded3b45342d516fbc4d /irc_im.c | |
parent | d7f850037c6288b5a2eebae789ed0247d0e5f7b3 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |