diff options
-rw-r--r-- | protocols/jabber/presence.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/jabber/presence.c b/protocols/jabber/presence.c index f577e56a..ef92740a 100644 --- a/protocols/jabber/presence.c +++ b/protocols/jabber/presence.c @@ -71,10 +71,10 @@ xt_status jabber_pkt_presence( struct xt_node *node, gpointer data ) else bud->priority = 0; - /* FIXME: What to send if there are other resources??? */ - imcb_buddy_status( ic, bud->bare_jid, OPT_LOGGED_IN | is_away, - ( is_away && bud->away_state ) ? bud->away_state->full_name : NULL, - bud->away_message ); + if( bud == jabber_buddy_by_jid( ic, bud->bare_jid, 0 ) ) + imcb_buddy_status( ic, bud->bare_jid, OPT_LOGGED_IN | is_away, + ( is_away && bud->away_state ) ? bud->away_state->full_name : NULL, + bud->away_message ); } else if( strcmp( type, "unavailable" ) == 0 ) { |