Comet Chat Friend of All

// friend_user_id is the id of the global friend
function create_global_comet_chat_friend($user_ID) {
global $wpdb;
$now = date('Y-m-d H:i:s');
$wpdb->insert($wpdb->prefix . "bp_friends", array('initiator_user_id' => $user_ID,'friend_user_id' => '21','is_confirmed' => '1','date_created' => $now));
}

add_action('user_register', 'create_global_comet_chat_friend');