Changeset a067771


Ignore:
Timestamp:
2010-05-09T22:08:30Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4c17d19
Parents:
4e608d6
Message:

Per-account channels also exist now.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • irc.h

    r4e608d6 ra067771  
    192192        irc_control_channel_type_t type;
    193193        struct bee_group *group;
     194        struct account *account;
    194195};
    195196
  • irc_channel.c

    r4e608d6 ra067771  
    265265        if( ( icc->group = bee_group_by_name( ic->irc->b, ic->name + 1, FALSE ) ) )
    266266                icc->type = IRC_CC_TYPE_GROUP;
     267        else if( ( icc->account = account_get( ic->irc->b, ic->name + 1 ) ) )
     268                icc->type = IRC_CC_TYPE_ACCOUNT;
    267269       
    268270        bee_irc_channel_update( ic->irc, ic, NULL );
  • irc_im.c

    r4e608d6 ra067771  
    145145        else if( icc->type == IRC_CC_TYPE_GROUP )
    146146                show = iu->bu->group == icc->group;
     147        else if( icc->type == IRC_CC_TYPE_ACCOUNT )
     148                show = iu->bu->ic->acc == icc->account;
    147149       
    148150        if( !show )
Note: See TracChangeset for help on using the changeset viewer.