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
1 changed files with 1 additions and 1 deletions

View File

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