Changeset 172a73f1 for protocols/jabber/presence.c
- Timestamp:
- 2006-09-24T10:25:41Z (18 years ago)
- Branches:
- master
- Children:
- 42127dc
- Parents:
- 5e202b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/presence.c
r5e202b0 r172a73f1 54 54 } 55 55 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. */ 58 int presence_send_update( struct gaim_connection *gc ) 57 59 { 60 struct jabber_data *jd = gc->proto_data; 58 61 struct xt_node *node; 62 char *show = jd->away_state->code; 63 char *status = jd->away_message; 59 64 int st; 60 65 61 node = jabber_make_packet( "presence", NULL, to, NULL );66 node = jabber_make_packet( "presence", NULL, NULL, NULL ); 62 67 if( show && *show ) 63 68 xt_add_child( node, xt_new_node( "show", show, NULL ) ); 64 69 if( status ) 65 70 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 ) ); 66 74 67 75 st = jabber_write_packet( gc, node );
Note: See TracChangeset
for help on using the changeset viewer.