diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-07 19:46:28 +0200 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-07 19:46:28 +0200 | 
| commit | 36e9f62a6e6fdb1217b3b819320ac5a94025c448 (patch) | |
| tree | c91d57d1f8fa144e1ffce2ae3143de5b30460b0c /protocols/jabber/presence.c | |
| parent | 090f1cbe72373b31e753af4a1442ddd53b02791b (diff) | |
Added SRV lookups to automatically find out the correct server for a
domain.
Diffstat (limited to 'protocols/jabber/presence.c')
| -rw-r--r-- | protocols/jabber/presence.c | 7 | 
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 );  | 
