Changeset e63507a


Ignore:
Timestamp:
2010-04-02T02:03:50Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
fb117aee
Parents:
d860a8d
Message:

Synced the values of some old OPT_* flags with BEE_USER_*.

Location:
protocols
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/bee.h

    rd860a8d re63507a  
    4545typedef enum
    4646{
    47         BEE_USER_ONLINE = 1,
    48         BEE_USER_AWAY = 2,
     47        BEE_USER_ONLINE = 1,    /* Compatibility with old OPT_LOGGED_IN flag */
     48        BEE_USER_AWAY = 4,      /* Compatibility with old OPT_AWAY flag */
    4949} bee_user_flags_t;
    5050
  • protocols/bee_user.c

    rd860a8d re63507a  
    129129       
    130130        /* TODO(wilmer): OPT_AWAY, or just state == NULL ? */
    131         bu->flags = ( flags & OPT_LOGGED_IN ? BEE_USER_ONLINE : 0 ) |
    132                     ( flags & OPT_AWAY ? BEE_USER_AWAY : 0 );
     131        bu->flags = flags;
    133132        bu->status = g_strdup( ( flags & OPT_AWAY ) && state == NULL ? "Away" : state );
    134133        bu->status_msg = g_strdup( message );
Note: See TracChangeset for help on using the changeset viewer.