Changeset 7b71feb for irc_channel.c


Ignore:
Timestamp:
2010-05-13T23:34:38Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4469e7e
Parents:
ad404ab
Message:

Just enough code to join named chatrooms again. This UI is *not* final, the "chat"
command will probably mostly stick around for bw compatibility. Still thinking
about how this should work eventually.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    rad404ab r7b71feb  
    313313}
    314314
     315static gboolean groupchat_stub_join( irc_channel_t *ic )
     316{
     317        struct irc_groupchat_stub *igs = ic->data;
     318       
     319        if( igs && igs->acc->ic && igs->acc->prpl->chat_join )
     320        {
     321                ic->flags |= IRC_CHANNEL_CHAT_PICKME;
     322                igs->acc->prpl->chat_join( igs->acc->ic, igs->room, ic->irc->user->nick, NULL );
     323                ic->flags &= ~IRC_CHANNEL_CHAT_PICKME;
     324                return FALSE;
     325        }
     326        else
     327        {
     328                irc_send_num( ic->irc, 403, "%s :Can't join channel, account offline?", ic->name );
     329                return FALSE;
     330        }
     331}
     332
    315333static const struct irc_channel_funcs groupchat_stub_funcs = {
    316334        NULL,
    317         NULL,
     335        groupchat_stub_join,
    318336        NULL,
    319337        NULL,
Note: See TracChangeset for help on using the changeset viewer.