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/jabber.c

    re101506 rcfbb3a6  
    153153       
    154154        presence_send_update( gc );
     155}
     156
     157static void jabber_add_buddy( struct gaim_connection *gc, char *who )
     158{
     159        if( jabber_add_to_roster( gc, who, NULL ) )
     160                presence_send_request( gc, who, "subscribe" );
     161}
     162
     163static void jabber_remove_buddy( struct gaim_connection *gc, char *who, char *group )
     164{
     165        if( jabber_remove_from_roster( gc, who ) )
     166                presence_send_request( gc, who, "unsubscribe" );
    155167}
    156168
     
    175187//      ret->set_info = jabber_set_info;
    176188//      ret->get_info = jabber_get_info;
    177 //      ret->add_buddy = jabber_add_buddy;
    178 //      ret->remove_buddy = jabber_remove_buddy;
     189        ret->add_buddy = jabber_add_buddy;
     190        ret->remove_buddy = jabber_remove_buddy;
    179191//      ret->chat_send = jabber_chat_send;
    180192//      ret->chat_invite = jabber_chat_invite;
Note: See TracChangeset for help on using the changeset viewer.