Changeset 006a84f for irc_im.c


Ignore:
Timestamp:
2010-07-04T20:40:15Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
69b896b, 6c2404e
Parents:
f537044
Message:

Kick the user instead of parting him/her when cleaning up a channel. This is
what the older version also did so that Irssi won't clean up the window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    rf537044 r006a84f  
    183183        if( !show )
    184184        {
    185                 irc_channel_del_user( ic, iu, FALSE, NULL );
     185                irc_channel_del_user( ic, iu, IRC_CDU_PART, NULL );
    186186        }
    187187        else
     
    479479       
    480480        ic->data = NULL;
    481         irc_channel_del_user( ic, ic->irc->user, FALSE, "Chatroom closed by server" );
     481        irc_channel_del_user( ic, ic->irc->user, IRC_CDU_KICK, "Chatroom closed by server" );
    482482       
    483483        return TRUE;
     
    525525           using imcb_chat_free() and the channel was IRC_CHANNEL_TEMP, we get into
    526526           a broken state around here. */
    527         irc_channel_del_user( c->ui_data, bu == bee->user ? irc->user : bu->ui_data, FALSE, NULL );
     527        irc_channel_del_user( c->ui_data, bu == bee->user ? irc->user : bu->ui_data, IRC_CDU_PART, NULL );
    528528       
    529529        return TRUE;
Note: See TracChangeset for help on using the changeset viewer.