Changeset 696 for trunk/sm/pres.c

Show
Ignore:
Timestamp:
02/09/08 16:10:19 (4 months ago)
Author:
smoku
Message:

Handle trusts based on bare and full JID roster items

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/sm/pres.c

    r436 r696  
    347347    item_t item; 
    348348 
     349    /* get roster item with bare jid*/ 
     350    item = xhash_get(user->roster, jid_user(jid)); 
     351 
     352    /* retry with full jid if not found */ 
     353    if(!item) 
     354        item = xhash_get(user->roster, jid_full(jid)); 
     355 
    349356    /* trusted if they're in the roster and they can see us */ 
    350     item = xhash_get(user->roster, jid_user(jid)); 
    351357    if(item != NULL && item->from) 
    352358        return 1;