Skip to content
Snippets Groups Projects
Commit 0464c8ea authored by rswindell's avatar rswindell
Browse files

Execute the type*.js scripts in their own context by passing a temporary

empty Object (as the scope) to load().
parent dcc94a93
No related branches found
No related tags found
No related merge requests found
......@@ -72,9 +72,9 @@ while(1) {
fname=str;
bbs.replace_text(563,"\001n\001h\001b{\001wContinue? Yes/No\001b} ");
if(str.search(/\.htm/)!=-1)
load("typehtml.js", "-color", str);
load(new Object, "typehtml.js", "-color", str);
else
load("typeasc.js", str, "BullsEye Bulletin #"+b);
load(new Object, "typeasc.js", str, "BullsEye Bulletin #"+b);
log("Node "+bbs.node_num+" "+user.alias+" viewed bulletin #"+i+": "+fname);
bbs.revert_text(563);
console.aborted=false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment