Changeset bfb99ee


Ignore:
Timestamp:
2010-05-08T12:13:23Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d343eaa
Parents:
a87754b
Message:

Allow leaving groupchat channels.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • irc.h

    ra87754b rbfb99ee  
    153153{
    154154        gboolean (*privmsg)( irc_channel_t *ic, const char *msg );
     155        gboolean (*join)( irc_channel_t *ic );
     156        gboolean (*part)( irc_channel_t *ic, const char *msg );
     157        gboolean (*topic)( irc_channel_t *ic, const char *new );
    155158};
    156159
  • irc_channel.c

    ra87754b rbfb99ee  
    123123       
    124124        if( iu == ic->irc->user )
     125        {
    125126                ic->flags &= ~IRC_CHANNEL_JOINED;
     127                if( ic->f->part )
     128                        ic->f->part( ic, NULL );
     129        }
    126130       
    127131        return 1;
  • irc_im.c

    ra87754b rbfb99ee  
    339339
    340340/* IRC->IM */
    341 
    342341static gboolean bee_irc_channel_chat_privmsg( irc_channel_t *ic, const char *msg )
    343342{
     
    345344       
    346345        bee_chat_msg( ic->irc->b, c, msg, 0 );
     346       
     347        return TRUE;
     348       
     349}
     350
     351static gboolean bee_irc_channel_chat_part( irc_channel_t *ic, const char *msg )
     352{
     353        struct groupchat *c = ic->data;
     354       
     355        if( c->ic->acc->prpl->chat_leave )
     356                c->ic->acc->prpl->chat_leave( c );
    347357       
    348358        return TRUE;
     
    352362static const struct irc_channel_funcs irc_channel_im_chat_funcs = {
    353363        bee_irc_channel_chat_privmsg,
     364        NULL,
     365        bee_irc_channel_chat_part,
    354366};
    355367
Note: See TracChangeset for help on using the changeset viewer.