..
This commit is contained in:
parent
135fecfe20
commit
0a4ae08a9d
16
init.lua
16
init.lua
@ -395,13 +395,6 @@ function getSandboxEnv (name)
|
||||
sqrt = math.sqrt, tan = math.tan,
|
||||
tanh = math.tanh,
|
||||
},
|
||||
table = {
|
||||
concat = table.concat,
|
||||
insert = table.insert,
|
||||
maxn = table.maxn,
|
||||
remove = table.remove,
|
||||
sort = table.sort,
|
||||
},
|
||||
os = {
|
||||
clock = os.clock,
|
||||
difftime = os.difftime,
|
||||
@ -472,6 +465,15 @@ function getSandboxEnv (name)
|
||||
|
||||
if authlevel>=1 then -- robot privs
|
||||
|
||||
|
||||
env.table = {
|
||||
concat = table.concat,
|
||||
insert = table.insert,
|
||||
maxn = table.maxn,
|
||||
remove = table.remove,
|
||||
sort = table.sort,
|
||||
},
|
||||
|
||||
env.code.run = function(script)
|
||||
if basic_robot.data[name].authlevel < 3 then
|
||||
local err = check_code(script);
|
||||
|
Loading…
x
Reference in New Issue
Block a user