lprintf(7, "Creating base rooms (if necessary)\n");
create_room(BASEROOM, 0, "", 0);
- create_room(AIDEROOM, 4, "", 0);
- create_room(SYSCONFIGROOM, 4, "", 0);
+ create_room(AIDEROOM, 3, "", 0);
+ create_room(SYSCONFIGROOM, 3, "", 0);
create_room(config.c_twitroom, 0, "", 0);
}
aide_message(buf);
if (strlen(config.c_logpages) > 0)
- create_room(config.c_logpages, 4, "", 0);
+ create_room(config.c_logpages, 3, "", 0);
}
else if (!strcasecmp(cmd, "GETSYS")) {
getroom(&CC->quickroom, hold_rm);
+ lprintf(9, "eggstracting...\n");
if (conf != NULL) do {
extract_token(buf, conf, 0, '\n');
+ lprintf(9, "eggstracted <%s>\n", buf);
strcpy(conf, &conf[strlen(buf)+1]);
} while ( (strlen(conf)>0) && (strlen(buf)>0) );
fp = fopen(temp, "w");
if (fp == NULL) return;
- fprintf(fp, "Content-type: %s\n\n", sysconfname);
fprintf(fp, "%s", sysconfdata);
fclose(fp);
/* this handy API function does all the work for us */
- CtdlWriteObject(SYSCONFIGROOM, sysconfname, temp,
- &CC->usersupp, 0, 1, 0);
-
+ CtdlWriteObject(SYSCONFIGROOM, sysconfname, temp, NULL, 0, 1, 0);
unlink(temp);
}