diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-08 13:13:23 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-08 13:13:23 +0100 |
commit | bfb99eebd101fff1e15783c8fe4f00398c8052b3 (patch) | |
tree | 6bbf75f4de24435304d5055234953900008b076b /irc_channel.c | |
parent | a87754b68bb1eb07397d71a93ffcb0f3fc089266 (diff) |
Allow leaving groupchat channels.
Diffstat (limited to 'irc_channel.c')
-rw-r--r-- | irc_channel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/irc_channel.c b/irc_channel.c index 63c46d95..c8ee7a92 100644 --- a/irc_channel.c +++ b/irc_channel.c @@ -122,7 +122,11 @@ int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu ) irc_send_part( ic, iu, "" ); if( iu == ic->irc->user ) + { ic->flags &= ~IRC_CHANNEL_JOINED; + if( ic->f->part ) + ic->f->part( ic, NULL ); + } return 1; } |