Ignore:
Timestamp:
2006-09-23T16:18:24Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
172a73f1
Parents:
d8e0484
Message:

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().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/presence.c

    rd8e0484 r5e202b0  
    5454}
    5555
    56 /* Send the <presence/> tag that finalizes the whole login process, from here
    57    we'll actually show up as online to our buddies. */
    58 int presence_announce( struct gaim_connection *gc )
    59 {
    60         struct xt_node *node;
    61         int st;
    62        
    63         node = jabber_make_packet( "presence", NULL, NULL, NULL );
    64        
    65         st = jabber_write_packet( gc, node );
    66        
    67         if( st )
    68                 account_online( gc );
    69        
    70         xt_free_node( node );
    71         return st;
    72 }
    73 
    7456int presence_send( struct gaim_connection *gc, char *to, char *show, char *status )
    7557{
     
    7860       
    7961        node = jabber_make_packet( "presence", NULL, to, NULL );
    80         if( show )
     62        if( show && *show )
    8163                xt_add_child( node, xt_new_node( "show", show, NULL ) );
    8264        if( status )
Note: See TracChangeset for help on using the changeset viewer.