aboutsummaryrefslogtreecommitdiffstats
path: root/irc_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_commands.c')
-rw-r--r--irc_commands.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/irc_commands.c b/irc_commands.c
index f56f45a0..e6954071 100644
--- a/irc_commands.c
+++ b/irc_commands.c
@@ -168,7 +168,12 @@ static void irc_cmd_part( irc_t *irc, char **cmd )
{
irc_send_num( irc, 403, "%s :No such channel", cmd[1] );
}
- else if( !irc_channel_del_user( ic, irc->user ) )
+ else if( irc_channel_del_user( ic, irc->user ) )
+ {
+ if( ic->f->part )
+ ic->f->part( ic, NULL );
+ }
+ else
{
irc_send_num( irc, 442, "%s :You're not on that channel", cmd[1] );
}