Add a comment

This commit is contained in:
tgpethan 2019-11-23 20:35:14 +00:00
parent 2e7a786736
commit 2e1479d508

View file

@ -36,6 +36,7 @@ fs.readFile('./misc/ascii.txt', function(err, data) {
console.log(`[Modules] Found module ${files[i].toString()}`); console.log(`[Modules] Found module ${files[i].toString()}`);
// We want to find out what the request handler module is // We want to find out what the request handler module is
if (global.modules[files[i].toString().replace(".js", "")].MOD_FUNC == "handle_requests") { if (global.modules[files[i].toString().replace(".js", "")].MOD_FUNC == "handle_requests") {
// Set reqhandler to the request handler for easy getting
reqhandler = global.modules[files[i].toString().replace(".js", "")]; reqhandler = global.modules[files[i].toString().replace(".js", "")];
} }
} else { } else {