Changeset 697

Show
Ignore:
Timestamp:
02/09/08 16:11:31 (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

    r696 r697  
    345345/** see if the jid is trusted (ie in the roster with s10n="from" or "both") */ 
    346346int pres_trust(user_t user, jid_t jid) { 
    347     item_t item; 
     347    item_t item = NULL; 
    348348 
    349349    /* get roster item with bare jid*/ 
     
    351351 
    352352    /* retry with full jid if not found */ 
    353     if(!item) 
     353    if(item == NULL) 
    354354        item = xhash_get(user->roster, jid_full(jid)); 
    355355