Changeset 006a84f for irc_channel.c
- Timestamp:
- 2010-07-04T20:40:15Z (13 years ago)
- Branches:
- master
- Children:
- 69b896b, 6c2404e
- Parents:
- f537044
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_channel.c
rf537044 r006a84f 119 119 120 120 if( ic->flags & IRC_CHANNEL_JOINED ) 121 irc_channel_del_user( ic, irc->user, FALSE, "Cleaning up channel" );121 irc_channel_del_user( ic, irc->user, IRC_CDU_KICK, "Cleaning up channel" ); 122 122 123 123 if( ic->f->_free ) … … 223 223 } 224 224 225 int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu, gboolean silent, const char *msg )225 int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu, irc_channel_del_user_type_t type, const char *msg ) 226 226 { 227 227 irc_channel_user_t *icu; … … 233 233 g_free( icu ); 234 234 235 if( ic->flags & IRC_CHANNEL_JOINED && !silent ) 235 if( !( ic->flags & IRC_CHANNEL_JOINED ) || type == IRC_CDU_SILENT ) {} 236 /* Do nothing. The caller should promise it won't screw 237 up state of the IRC client. :-) */ 238 else if( type == IRC_CDU_PART ) 236 239 irc_send_part( ic, iu, msg ); 240 else if( type == IRC_CDU_KICK ) 241 irc_send_kick( ic, iu, ic->irc->root, msg ); 237 242 238 243 if( iu == ic->irc->user )
Note: See TracChangeset
for help on using the changeset viewer.