Changeset 47fae0f


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.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    re5abfd4 r47fae0f  
    128128       
    129129        if( iu == ic->irc->user )
    130         {
    131130                ic->flags &= ~IRC_CHANNEL_JOINED;
    132                 if( ic->f->part )
    133                         ic->f->part( ic, NULL );
    134         }
    135131       
    136132        return 1;
  • 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.