Ignore:
Timestamp:
2006-10-09T18:19:05Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
a21a8ac
Parents:
861c199
Message:

The module now keeps track of all resources available for a buddy. This
means the buddy won't show up offline when one resource goes down (while
there are still others available). It also remembers away state
information for every separate resource. Later this system will be used
to keep track of client capability information (Typing notices, yay...)
and who knows what else.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    r861c199 r6a1128d  
    8080       
    8181        jd->node_cache = g_hash_table_new_full( g_str_hash, g_str_equal, NULL, jabber_cache_entry_free );
     82        jd->buddies = g_hash_table_new( g_str_hash, g_str_equal );
    8283       
    8384        /* Figure out the hostname to connect to. */
     
    169170static void jabber_get_info( struct gaim_connection *gc, char *who )
    170171{
     172        struct jabber_buddy *bud;
    171173        struct xt_node *node;
    172174       
     175        bud = jabber_buddy_by_jid( gc, who );
     176        while( bud )
     177        {
     178                serv_got_crap( gc, "Buddy %s/%s (%d) information:\nAway state: %s\nAway message: %s",
     179                                   bud->handle, bud->resource, bud->priority,
     180                                   bud->away_state ? bud->away_state->full_name : "(none)",
     181                                   bud->away_message ? : "(none)" );
     182                bud = bud->next;
     183        }
     184       
     185//      node = xt_new_node( "vCard", NULL, NULL );
     186//      xt_add_attr( node, "xmlns", "vcard-temp" );
    173187        node = xt_new_node( "query", NULL, NULL );
    174         xt_add_attr( node, "xmlns", "http://jabber.org/protocol/disco#info" );
     188        xt_add_attr( node, "xmlns", "jabber:iq:version" );
    175189        node = jabber_make_packet( "iq", "get", who, node );
    176190        // jabber_cache_add( gc, node,  );
Note: See TracChangeset for help on using the changeset viewer.