Changeset 3e59c8d for protocols


Ignore:
Timestamp:
2010-07-18T15:31:58Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4f22a68c
Parents:
2efb69b
Message:

libpurple: Add contacts to groups when requested. Still not dealing well
with contacts in multiple groups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    r2efb69b r3e59c8d  
    358358{
    359359        PurpleBuddy *pb;
     360        PurpleGroup *pg = NULL;
     361       
     362        if( group && !( pg = purple_find_group( group ) ) )
     363        {
     364                pg = purple_group_new( group );
     365                purple_blist_add_group( pg, NULL );
     366        }
    360367       
    361368        pb = purple_buddy_new( (PurpleAccount*) ic->proto_data, who, NULL );
    362         purple_blist_add_buddy( pb, NULL, NULL, NULL );
     369        purple_blist_add_buddy( pb, NULL, pg, NULL );
    363370        purple_account_add_buddy( (PurpleAccount*) ic->proto_data, pb );
    364371}
     
    10711078        imcb_ask_with_free( ic, q, user_data, authorize_cb, deny_cb, NULL );
    10721079        g_free( q );
     1080       
     1081        return NULL;
    10731082}
    10741083
Note: See TracChangeset for help on using the changeset viewer.