Changeset daae10f for protocols/jabber
- Timestamp:
- 2010-08-07T16:33:02Z (14 years ago)
- Branches:
- master
- Children:
- 7b87539
- Parents:
- 289bd2d
- Location:
- protocols/jabber
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/Makefile
r289bd2d rdaae10f 15 15 objects = conference.o io.o iq.o jabber.o jabber_util.o message.o presence.o s5bytestream.o sasl.o si.o 16 16 17 CFLAGS += -Wall18 17 LFLAGS += -r 19 18 -
protocols/jabber/jabber.c
r289bd2d rdaae10f 381 381 if( bud->away_state ) 382 382 imcb_log( ic, "Away state: %s", bud->away_state->full_name ); 383 imcb_log( ic, "Status message: %s", bud->away_message ? : "(none)" );383 imcb_log( ic, "Status message: %s", bud->away_message ? bud->away_message : "(none)" ); 384 384 385 385 bud = bud->next; … … 395 395 /* state_txt == NULL -> Not away. 396 396 Unknown state -> fall back to the first defined away state. */ 397 jd->away_state = state_txt ? jabber_away_state_by_name( state_txt ) 398 ? : jabber_away_state_list : NULL; 397 if( state_txt == NULL ) 398 jd->away_state = NULL; 399 else if( ( jd->away_state = jabber_away_state_by_name( state_txt ) ) == NULL ) 400 jd->away_state = jabber_away_state_list; 399 401 400 402 g_free( jd->away_message ); -
protocols/jabber/message.c
r289bd2d rdaae10f 59 59 { 60 60 room = from; 61 from = xt_find_attr( inv, "from" ) ? : from; 61 if( ( from = xt_find_attr( inv, "from" ) ) == NULL ) 62 from = room; 62 63 63 64 g_string_append_printf( fullmsg, "<< \002BitlBee\002 - Invitation to chatroom %s >>\n", room ); … … 72 73 { 73 74 bud->last_msg = time( NULL ); 74 from = bud->ext_jid ? : bud->bare_jid;75 from = bud->ext_jid ? bud->ext_jid : bud->bare_jid; 75 76 } 76 77 else
Note: See TracChangeset
for help on using the changeset viewer.