Changeset fd45e1d1


Ignore:
Timestamp:
2010-05-08T14:12:32Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4a9fd5f
Parents:
b0364dc
Message:

Always show normal contacts in &bitlbee, not just the first channel in the
list.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    rb0364dc rfd45e1d1  
    636636                        irc_umode_set( irc, "+" UMODE, TRUE );
    637637                       
    638                         ic = irc_channel_new( irc, ROOT_CHAN );
     638                        ic = irc->default_channel = irc_channel_new( irc, ROOT_CHAN );
    639639                        irc_channel_set_topic( ic, CONTROL_TOPIC, irc->root );
    640640                        irc_channel_add_user( ic, irc->user );
  • irc.h

    rb0364dc rfd45e1d1  
    7878       
    7979        GSList *users, *channels;
     80        struct irc_channel *default_channel;
    8081        GHashTable *nick_user_hash;
    8182        GHashTable *watches;
     
    130131{
    131132        IRC_CHANNEL_JOINED = 1,
     133        IRC_CHANNEL_CONTACTS = 256,
    132134} irc_channel_flags_t;
    133135
  • irc_im.c

    rb0364dc rfd45e1d1  
    8181        irc_t *irc = bee->ui_data;
    8282        irc_user_t *iu = bu->ui_data;
    83         irc_channel_t *ic = irc->channels->data; /* For now, just pick the first channel. */
     83        irc_channel_t *ic = irc->default_channel;
    8484       
    8585        /* Do this outside the if below since away state can change without
     
    119119{
    120120        irc_t *irc = bee->ui_data;
    121         irc_channel_t *ic = irc->channels->data;
     121        irc_channel_t *ic = irc->default_channel;
    122122        irc_user_t *iu = (irc_user_t *) bu->ui_data;
    123123        char *dst, *prefix = NULL;
     
    410410static gboolean bee_irc_channel_chat_topic( irc_channel_t *ic, const char *new )
    411411{
     412        return TRUE;
    412413}
    413414
Note: See TracChangeset for help on using the changeset viewer.