Commit 3dddd44e authored by rswindell's avatar rswindell
Browse files

Fixed bug in last commit (always check for .js in exec_bin).

parent b7274b77
......@@ -666,11 +666,11 @@ long sbbs_t::exec_bin(char *mod, csi_t *csi)
#ifdef JAVASCRIPT
if(cfg.mods_dir[0]) {
sprintf(str,"%s%s%s",cfg.mods_dir,mod,js_ext(mod));
sprintf(str,"%s%s.js",cfg.mods_dir,mod);
if(fexistcase(str))
return(js_execfile(str));
}
sprintf(str,"%s%s%s",cfg.exec_dir,mod,js_ext(mod));
sprintf(str,"%s%s.js",cfg.exec_dir,mod);
if(fexistcase(str))
return(js_execfile(str));
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment