Changeset 840bba8 for protocols/jabber/jabber.c
- Timestamp:
- 2010-03-06T14:50:52Z (15 years ago)
- Branches:
- master
- Children:
- 2bc8ac0
- Parents:
- d1ad6f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
rd1ad6f0 r840bba8 80 80 s = set_add( &acc->set, "xmlconsole", "false", set_eval_bool, acc ); 81 81 s->flags |= ACC_SET_OFFLINE_ONLY; 82 83 acc->flags |= ACC_FLAG_AWAY_MESSAGE | ACC_FLAG_STATUS_MESSAGE; 82 84 } 83 85 … … 377 379 { 378 380 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 384 387 g_free( jd->away_message ); 385 388 jd->away_message = ( message && *message ) ? g_strdup( message ) : NULL;
Note: See TracChangeset
for help on using the changeset viewer.