diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-09 13:05:50 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-09 13:05:50 +0100 |
commit | 47fae0ffdda6ea4509ba00b56d15fb25ffe19eea (patch) | |
tree | 7012f0b89a90fa939382efd40c2a3da342de1d14 /irc_commands.c | |
parent | e5abfd413a797b268db0b107d0748eb7e40da431 (diff) |
No. Run the part handler from the IRC /PART command, not from irc_channel.c.
This was causing troubles with Twitter at disconnect time.
Diffstat (limited to 'irc_commands.c')
-rw-r--r-- | irc_commands.c | 7 |
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] ); } |