static void msn_add_buddy( struct im_connection *ic, char *who, char *group ) { struct bee_user *bu = bee_user_by_handle( ic->bee, ic, who ); msn_buddy_list_add( ic, MSN_BUDDY_FL, who, who, group ); if( bu && bu->group ) msn_buddy_list_remove( ic, MSN_BUDDY_FL, who, bu->group->name ); }
static void msn_buddy_ask_no( void *data ) { struct msn_buddy_ask_data *bla = data; msn_buddy_list_add( bla->ic, MSN_BUDDY_BL, bla->handle, bla->realname, NULL ); g_free( bla->handle ); g_free( bla->realname ); g_free( bla ); }
static void msn_add_deny( struct im_connection *ic, char *who ) { struct msn_switchboard *sb; msn_buddy_list_add( ic, MSN_BUDDY_BL, who, who, NULL ); /* If there's still a conversation with this person, close it. */ if( ( sb = msn_sb_by_handle( ic, who ) ) ) { msn_sb_destroy( sb ); } }
static void msn_add_permit( struct im_connection *ic, char *who ) { msn_buddy_list_add( ic, MSN_BUDDY_AL, who, who, NULL ); }