Ignore:
Timestamp:
2006-09-24T10:25:41Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
42127dc
Parents:
5e202b0
Message:

Updated <presence> stuff to handle changing the priority setting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/presence.c

    r5e202b0 r172a73f1  
    5454}
    5555
    56 int presence_send( struct gaim_connection *gc, char *to, char *show, char *status )
     56/* Whenever presence information is updated, call this function to inform the
     57   server. */
     58int presence_send_update( struct gaim_connection *gc )
    5759{
     60        struct jabber_data *jd = gc->proto_data;
    5861        struct xt_node *node;
     62        char *show = jd->away_state->code;
     63        char *status = jd->away_message;
    5964        int st;
    6065       
    61         node = jabber_make_packet( "presence", NULL, to, NULL );
     66        node = jabber_make_packet( "presence", NULL, NULL, NULL );
    6267        if( show && *show )
    6368                xt_add_child( node, xt_new_node( "show", show, NULL ) );
    6469        if( status )
    6570                xt_add_child( node, xt_new_node( "status", status, NULL ) );
     71        /* if( set_getint( &gc->acc->set, "priority" ) != 0 ) */
     72        /* Let's just send this every time... */
     73                xt_add_child( node, xt_new_node( "priority", set_getstr( &gc->acc->set, "priority" ), NULL ) );
    6674       
    6775        st = jabber_write_packet( gc, node );
Note: See TracChangeset for help on using the changeset viewer.