{
static char *info[MAX_ARGS_SIZE], **add_args;
int status, ret_code = SUB_NORMAL;
+ struct qelem *elem = NULL;
if (!ValidName(argv[1]))
return(DM_NORMAL);
return(SUB_ERROR);
}
+ if (do_mr_query("get_user_account_by_login", 1, argv + 1,
+ StoreInfo, (char *) &elem) == 0) {
+ Put_message("A user by that name already exists in the database.");
+ Loop(QueueTop(elem), FreeInfo);
+ FreeQueue(elem);
+ if (YesNoQuestion("Crate a list with the same name",
+ FALSE) != TRUE)
+ return(SUB_ERROR);
+ }
+
if ((add_args = AskListInfo(SetDefaults(info,argv[1]), FALSE)) == NULL) {
Put_message("Aborted.");
return(SUB_ERROR);