Changeset 18da20b for irc_channel.c


Ignore:
Timestamp:
2010-06-06T00:33:33Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
1f0224c
Parents:
c1a8a16
Message:

Added /part msgs, and the ability to silently remove users from channels
(when sending a /quit instead, for example).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    rc1a8a16 r18da20b  
    8181       
    8282        if( ic->flags & IRC_CHANNEL_JOINED )
    83                 irc_channel_del_user( ic, irc->user );
     83                irc_channel_del_user( ic, irc->user, FALSE, "Cleaning up channel" );
    8484       
    8585        irc->channels = g_slist_remove( irc->channels, ic );
     
    142142}
    143143
    144 int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu )
     144int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu, gboolean silent, const char *msg )
    145145{
    146146        irc_channel_user_t *icu;
     
    152152        g_free( icu );
    153153       
    154         if( ic->flags & IRC_CHANNEL_JOINED )
    155                 irc_send_part( ic, iu, "" );
     154        if( ic->flags & IRC_CHANNEL_JOINED && !silent )
     155                irc_send_part( ic, iu, msg );
    156156       
    157157        if( iu == ic->irc->user )
Note: See TracChangeset for help on using the changeset viewer.