Changeset daae10f for protocols/jabber


Ignore:
Timestamp:
2010-08-07T16:33:02Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7b87539
Parents:
289bd2d
Message:

OpenSolaris (non-gcc) fixes, patches from Dagobert Michelsen <dam@…>
with some changes.

Location:
protocols/jabber
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/Makefile

    r289bd2d rdaae10f  
    1515objects = conference.o io.o iq.o jabber.o jabber_util.o message.o presence.o s5bytestream.o sasl.o si.o
    1616
    17 CFLAGS += -Wall
    1817LFLAGS += -r
    1918
  • protocols/jabber/jabber.c

    r289bd2d rdaae10f  
    381381                if( bud->away_state )
    382382                        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)" );
    384384               
    385385                bud = bud->next;
     
    395395        /* state_txt == NULL -> Not away.
    396396           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;
    399401       
    400402        g_free( jd->away_message );
  • protocols/jabber/message.c

    r289bd2d rdaae10f  
    5959                        {
    6060                                room = from;
    61                                 from = xt_find_attr( inv, "from" ) ? : from;
     61                                if( ( from = xt_find_attr( inv, "from" ) ) == NULL )
     62                                        from = room;
    6263
    6364                                g_string_append_printf( fullmsg, "<< \002BitlBee\002 - Invitation to chatroom %s >>\n", room );
     
    7273                        {
    7374                                bud->last_msg = time( NULL );
    74                                 from = bud->ext_jid ? : bud->bare_jid;
     75                                from = bud->ext_jid ? bud->ext_jid : bud->bare_jid;
    7576                        }
    7677                        else
Note: See TracChangeset for help on using the changeset viewer.