- accitem = da_acc_get_by_imp_name(name);
- if( accitem == NULL )
- {
- // check for an existing account before creating it
- existitem = da_acc_get_by_name(name);
-
- accitem = import_create_account(name, NULL);
- DB( g_print(" -> creating account '%s'\n", name ) );
-
- if( existitem != NULL )
- {
- accitem->imp_key = existitem->key;
- DB( g_print(" -> existitem is '%d' %s\n", existitem->key, existitem->name ) );
- }
- }