Ignore:
Timestamp:
2010-03-06T14:50:52Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
2bc8ac0
Parents:
d1ad6f0
Message:

The Jabber part of the change. Also made representation of not-away a bit
more consistent. Except for free-for-chat, which is nuts anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    rd1ad6f0 r840bba8  
    8080        s = set_add( &acc->set, "xmlconsole", "false", set_eval_bool, acc );
    8181        s->flags |= ACC_SET_OFFLINE_ONLY;
     82       
     83        acc->flags |= ACC_FLAG_AWAY_MESSAGE | ACC_FLAG_STATUS_MESSAGE;
    8284}
    8385
     
    377379{
    378380        struct jabber_data *jd = ic->proto_data;
    379         struct jabber_away_state *state;
    380        
    381         /* Save all this info. We need it, for example, when changing the priority setting. */
    382         state = (void *) jabber_away_state_by_name( state_txt );
    383         jd->away_state = state ? state : (void *) jabber_away_state_list; /* Fall back to "Away" if necessary. */
     381       
     382        /* state_txt == NULL -> Not away.
     383           Unknown state -> fall back to the first defined away state. */
     384        jd->away_state = state_txt ? jabber_away_state_by_name( state_txt )
     385                         ? : jabber_away_state_list : NULL;
     386       
    384387        g_free( jd->away_message );
    385388        jd->away_message = ( message && *message ) ? g_strdup( message ) : NULL;
Note: See TracChangeset for help on using the changeset viewer.