aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/presence.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/jabber/presence.c')
-rw-r--r--protocols/jabber/presence.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/jabber/presence.c b/protocols/jabber/presence.c
index 57301270..5bef498d 100644
--- a/protocols/jabber/presence.c
+++ b/protocols/jabber/presence.c
@@ -37,6 +37,9 @@ xt_status jabber_pkt_presence( struct xt_node *node, gpointer data )
if( s )
*s = 0;
+ /* Will implement better parsing of away states/msgs when we
+ finally do those API changes. Which will probably be after
+ merging this module into the main tree. */
if( type == NULL )
serv_got_update( gc, from, 1, 0, 0, 0, 0, 0 );
else if( strcmp( type, "unavailable" ) == 0 )
@@ -83,13 +86,11 @@ int presence_send_update( struct gaim_connection *gc )
int st;
node = jabber_make_packet( "presence", NULL, NULL, NULL );
+ xt_add_child( node, xt_new_node( "priority", set_getstr( &gc->acc->set, "priority" ), NULL ) );
if( show && *show )
xt_add_child( node, xt_new_node( "show", show, NULL ) );
if( status )
xt_add_child( node, xt_new_node( "status", status, NULL ) );
- /* if( set_getint( &gc->acc->set, "priority" ) != 0 ) */
- /* Let's just send this every time... */
- xt_add_child( node, xt_new_node( "priority", set_getstr( &gc->acc->set, "priority" ), NULL ) );
st = jabber_write_packet( gc, node );