Changeset 17fa798


Ignore:
Timestamp:
2007-04-21T05:02:05Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
df1fb67
Parents:
d11dd2f
Message:

Jabber module should always send the status information of the primary
resource now, instead of just whatever came in last.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/presence.c

    rd11dd2f r17fa798  
    7272                        bud->priority = 0;
    7373               
    74                 /* FIXME: What to send if there are other resources??? */
    75                 imcb_buddy_status( ic, bud->bare_jid, OPT_LOGGED_IN | is_away,
    76                                    ( is_away && bud->away_state ) ? bud->away_state->full_name : NULL,
    77                                    bud->away_message );
     74                if( bud == jabber_buddy_by_jid( ic, bud->bare_jid, 0 ) )
     75                        imcb_buddy_status( ic, bud->bare_jid, OPT_LOGGED_IN | is_away,
     76                                           ( is_away && bud->away_state ) ? bud->away_state->full_name : NULL,
     77                                           bud->away_message );
    7878        }
    7979        else if( strcmp( type, "unavailable" ) == 0 )
Note: See TracChangeset for help on using the changeset viewer.