Changes in protocols/jabber/jabber.c [f9928cb:823de9d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
rf9928cb r823de9d 67 67 s->flags |= ACC_SET_OFFLINE_ONLY; 68 68 69 s = set_add( &acc->set, "resource_select", " activity", NULL, acc );69 s = set_add( &acc->set, "resource_select", "priority", NULL, acc ); 70 70 71 71 s = set_add( &acc->set, "server", NULL, set_eval_account, acc ); … … 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;84 82 } 85 83 … … 366 364 while( bud ) 367 365 { 368 imcb_log( ic, "Buddy %s (%d) information:", bud->full_jid, bud->priority ); 369 if( bud->away_state ) 370 imcb_log( ic, "Away state: %s", bud->away_state->full_name ); 371 imcb_log( ic, "Status message: %s", bud->away_message ? : "(none)" ); 372 366 imcb_log( ic, "Buddy %s (%d) information:\nAway state: %s\nAway message: %s", 367 bud->full_jid, bud->priority, 368 bud->away_state ? bud->away_state->full_name : "(none)", 369 bud->away_message ? : "(none)" ); 373 370 bud = bud->next; 374 371 } … … 380 377 { 381 378 struct jabber_data *jd = ic->proto_data; 382 383 /* state_txt == NULL -> Not away. 384 Unknown state -> fall back to the first defined away state. */ 385 jd->away_state = state_txt ? jabber_away_state_by_name( state_txt ) 386 ? : jabber_away_state_list : NULL; 387 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. */ 388 384 g_free( jd->away_message ); 389 385 jd->away_message = ( message && *message ) ? g_strdup( message ) : NULL; … … 429 425 } 430 426 431 static struct groupchat *jabber_chat_join_( struct im_connection *ic, c onst char *room, const char *nick, constchar *password )427 static struct groupchat *jabber_chat_join_( struct im_connection *ic, char *room, char *nick, char *password ) 432 428 { 433 429 if( strchr( room, '@' ) == NULL ) … … 532 528 533 529 ret->name = "jabber"; 530 ret->mms = 0; /* no limit */ 534 531 ret->login = jabber_login; 535 532 ret->init = jabber_init;
Note: See TracChangeset
for help on using the changeset viewer.