Fix not autogenerating folders

This commit is contained in:
calzoneman 2013-07-28 19:47:13 -04:00
parent 77a57d24c1
commit ac75cf34ab

View file

@ -193,6 +193,15 @@ var Server = {
};
Logger.syslog.log("Starting CyTube v" + VERSION);
fs.exists("chanlogs", function (exists) {
exists || fs.mkdir("chanlogs");
});
fs.exists("chandump", function (exists) {
exists || fs.mkdir("chandump");
});
Config.load(Server, "cfg.json", function () {
Server.init();
if(!Server.cfg["debug"]) {