Ignore:
Timestamp:
2010-06-08T23:43:13Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6acc033
Parents:
d7db346
Message:

Allow moving contacts around between groups. Works with at least Jabber,
will check the others now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/iq.c

    rd7db346 r46d215d  
    555555static xt_status jabber_add_to_roster_callback( struct im_connection *ic, struct xt_node *node, struct xt_node *orig );
    556556
    557 int jabber_add_to_roster( struct im_connection *ic, char *handle, char *name )
     557int jabber_add_to_roster( struct im_connection *ic, const char *handle, const char *name, const char *group )
    558558{
    559559        struct xt_node *node;
     
    565565        if( name )
    566566                xt_add_attr( node, "name", name );
     567        if( group )
     568                xt_add_child( node, xt_new_node( "group", group, NULL ) );
    567569       
    568570        /* And pack it into a roster-add packet */
Note: See TracChangeset for help on using the changeset viewer.