made the sandboxing actually work, 100/100 clever.
This commit is contained in:
parent
5caeb70592
commit
9cec183470
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user