made the sandboxing actually work, 100/100 clever.

This commit is contained in:
Izaya 2017-09-14 14:09:16 +10:00
parent 5caeb70592
commit 9cec183470

View File

@ -39,7 +39,7 @@ spawn("lua shell",function()
if inp:sub(1,1) == "=" then if inp:sub(1,1) == "=" then
inp="return "..inp:sub(2) inp="return "..inp:sub(2)
end end
local r={pcall(load(inp,_ENV))} local r={pcall(load(inp,"shell","bt",_ENV))}
if r[1] == true then if r[1] == true then
table.remove(r,1) table.remove(r,1)
end end