Changeset 7e83adca


Ignore:
Timestamp:
2006-10-12T22:14:00Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
93b7bd4
Parents:
a4effbf
Message:

Fixed get_info(), now that buddy_by_jid() doesn't just return the first
resource in the list anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    ra4effbf r7e83adca  
    186186static void jabber_get_info( struct gaim_connection *gc, char *who )
    187187{
     188        struct jabber_data *jd = gc->proto_data;
    188189        struct jabber_buddy *bud;
    189         struct xt_node *node;
    190        
    191         bud = jabber_buddy_by_jid( gc, who );
     190       
     191        if( strchr( who, '/' ) )
     192                bud = jabber_buddy_by_jid( gc, who );
     193        else
     194                bud = g_hash_table_lookup( jd->buddies, who );
     195       
    192196        while( bud )
    193197        {
     
    198202                bud = bud->next;
    199203        }
    200        
    201 //      node = xt_new_node( "vCard", NULL, NULL );
    202 //      xt_add_attr( node, "xmlns", "vcard-temp" );
    203         node = xt_new_node( "query", NULL, NULL );
    204         xt_add_attr( node, "xmlns", "jabber:iq:version" );
    205         node = jabber_make_packet( "iq", "get", who, node );
    206         // jabber_cache_add( gc, node,  );
    207        
    208         jabber_write_packet( gc, node );
    209204}
    210205
Note: See TracChangeset for help on using the changeset viewer.