1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

[mesecons] Update

This commit is contained in:
LeMagnesium
2016-01-09 15:20:32 +01:00
parent c9bf1c67a9
commit 151f4cbb1e
33 changed files with 53 additions and 66 deletions

View File

@ -201,6 +201,10 @@ local function safe_print(param)
print(dump(param))
end
local function safe_date()
return(os.date("*t",os.time()))
end
local function remove_functions(x)
local tp = type(x)
if tp == "table" then
@ -321,6 +325,7 @@ local function create_environment(pos, mem, event)
clock = os.clock,
difftime = os.difftime,
time = os.time,
datetable = safe_date,
},
}
env._G = env