Ignore:
Timestamp:
2006-09-21T19:48:17Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5997488
Parents:
5bcf70a
Message:

Implemented set_away() (VERY simple version, have to add an away state
table like in the MSN module), added sending of keepalive "packets" and
removed old main() code (for testing only) from jabber.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/presence.c

    r5bcf70a rdeff040  
    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. */
    5658int presence_announce( struct gaim_connection *gc )
    5759{
     
    6971        return st;
    7072}
     73
     74int presence_send( struct gaim_connection *gc, char *to, char *show, char *status )
     75{
     76        struct xt_node *node;
     77        int st;
     78       
     79        node = jabber_make_packet( "presence", NULL, to, NULL );
     80        if( show )
     81                xt_add_child( node, xt_new_node( "show", show, NULL ) );
     82        if( status )
     83                xt_add_child( node, xt_new_node( "status", status, NULL ) );
     84       
     85        st = jabber_write_packet( gc, node );
     86       
     87        xt_free_node( node );
     88        return st;
     89}
Note: See TracChangeset for help on using the changeset viewer.