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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user