diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-09-23 18:18:24 +0200 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-09-23 18:18:24 +0200 | 
| commit | 5e202b09f2cd9faff5f316ae6804facb5342eace (patch) | |
| tree | d2531aa515457d66b303cbcb94ea5d7243fcb041 /protocols/jabber/presence.c | |
| parent | d8e04849607d4a5ca590752dce37954f12179580 (diff) | |
Implemented a list of away states, using this for a better set_away(), and
got rid of the double <presence> tag sent because of presence_announce().
Diffstat (limited to 'protocols/jabber/presence.c')
| -rw-r--r-- | protocols/jabber/presence.c | 20 | 
1 files changed, 1 insertions, 19 deletions
| diff --git a/protocols/jabber/presence.c b/protocols/jabber/presence.c index 75e8786c..18ce969b 100644 --- a/protocols/jabber/presence.c +++ b/protocols/jabber/presence.c @@ -53,31 +53,13 @@ xt_status jabber_pkt_presence( struct xt_node *node, gpointer data )  	return XT_HANDLED;  } -/* Send the <presence/> tag that finalizes the whole login process, from here -   we'll actually show up as online to our buddies. */ -int presence_announce( struct gaim_connection *gc ) -{ -	struct xt_node *node; -	int st; -	 -	node = jabber_make_packet( "presence", NULL, NULL, NULL ); -	 -	st = jabber_write_packet( gc, node ); -	 -	if( st ) -		account_online( gc ); -	 -	xt_free_node( node ); -	return st; -} -  int presence_send( struct gaim_connection *gc, char *to, char *show, char *status )  {  	struct xt_node *node;  	int st;  	node = jabber_make_packet( "presence", NULL, to, NULL ); -	if( show ) +	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 ) ); | 
