Changeset 006a84f for irc.h


Ignore:
Timestamp:
2010-07-04T20:40:15Z (14 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.h

    rf537044 r006a84f  
    206206extern const struct bee_ui_funcs irc_ui_funcs;
    207207
     208typedef enum
     209{
     210        IRC_CDU_SILENT,
     211        IRC_CDU_PART,
     212        IRC_CDU_KICK,
     213} irc_channel_del_user_type_t;
     214
    208215/* irc.c */
    209216extern GSList *irc_connection_list;
     
    233240void irc_channel_free_soon( irc_channel_t *ic );
    234241int irc_channel_add_user( irc_channel_t *ic, irc_user_t *iu );
    235 int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu, gboolean silent, const char *msg );
     242int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu, irc_channel_del_user_type_t type, const char *msg );
    236243irc_channel_user_t *irc_channel_has_user( irc_channel_t *ic, irc_user_t *iu );
    237244int irc_channel_set_topic( irc_channel_t *ic, const char *topic, const irc_user_t *who );
     
    256263void irc_send_part( irc_channel_t *ic, irc_user_t *iu, const char *reason );
    257264void irc_send_quit( irc_user_t *iu, const char *reason );
     265void irc_send_kick( irc_channel_t *ic, irc_user_t *iu, irc_user_t *kicker, const char *reason );
    258266void irc_send_names( irc_channel_t *ic );
    259267void irc_send_topic( irc_channel_t *ic, gboolean topic_change );
Note: See TracChangeset for help on using the changeset viewer.