Ignore:
Timestamp:
2006-09-24T18:08:07Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
8e5e2e9
Parents:
e101506
Message:

Added add_buddy/remove_buddy functions. Removing a contact doesn't seem
to work perfectly though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/presence.c

    re101506 rcfbb3a6  
    7878        return st;
    7979}
     80
     81/* Send a subscribe/unsubscribe request to a buddy. */
     82int presence_send_request( struct gaim_connection *gc, char *handle, char *request )
     83{
     84        struct xt_node *node;
     85        int st;
     86       
     87        node = jabber_make_packet( "presence", NULL, NULL, NULL );
     88        xt_add_attr( node, "to", handle );
     89        xt_add_attr( node, "type", request );
     90       
     91        st = jabber_write_packet( gc, node );
     92       
     93        xt_free_node( node );
     94        return st;
     95}
Note: See TracChangeset for help on using the changeset viewer.