Changeset bfb99ee for irc_im.c


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

Allow leaving groupchat channels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.