From bfb99eebd101fff1e15783c8fe4f00398c8052b3 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 8 May 2010 13:13:23 +0100 Subject: Allow leaving groupchat channels. --- irc_channel.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'irc_channel.c') 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; } -- cgit v1.2.3