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.c20
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 ) );