aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-04-20 22:02:05 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2007-04-20 22:02:05 -0700
commit17fa798247bf1a9b18de2c4848039f940d819f31 (patch)
treea24695d318d865c0f21854b1b5cefd2465d6d1ae
parentd11dd2f07d869282acfcdf5951f8e82d65afa234 (diff)
Jabber module should always send the status information of the primary
resource now, instead of just whatever came in last.
-rw-r--r--protocols/jabber/presence.c8
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 )
{