Skip to content
Snippets Groups Projects
Commit 38178e6d authored by mcmlxxix's avatar mcmlxxix
Browse files

fix module command loader

parent 6b672d93
Branches
Tags
No related merge requests found
......@@ -542,6 +542,7 @@ engine = new (function() {
this.name = name;
this.dir = dir;
this.queue = undefined;
this.commands = {};
this.auth = auth;
this.db;
......@@ -558,7 +559,7 @@ engine = new (function() {
/* load module command file */
if(file_exists(this.dir + "commands.js")) {
try {
this.queue = load(this,this.dir + "commands.js",this.dir);
load(this.commands,this.dir + "commands.js",this.dir);
} catch(e) {
log(LOG_ERROR,"error loading module commands: " + this.name);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment