Changeset 47fae0f for irc_commands.c


Ignore:
Timestamp:
2010-05-09T12:05:50Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5a673f3
Parents:
e5abfd4
Message:

No. Run the part handler from the IRC /PART command, not from irc_channel.c.
This was causing troubles with Twitter at disconnect time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    re5abfd4 r47fae0f  
    169169                irc_send_num( irc, 403, "%s :No such channel", cmd[1] );
    170170        }
    171         else if( !irc_channel_del_user( ic, irc->user ) )
     171        else if( irc_channel_del_user( ic, irc->user ) )
     172        {
     173                if( ic->f->part )
     174                        ic->f->part( ic, NULL );
     175        }
     176        else
    172177        {
    173178                irc_send_num( irc, 442, "%s :You're not on that channel", cmd[1] );
Note: See TracChangeset for help on using the changeset viewer.