mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
Select loadstring or load for Lua 5.1/5.2 respectively
This commit is contained in:
parent
46736a3355
commit
cf4d29f86d
@ -15,6 +15,6 @@ while 1 do
|
|||||||
assert(command, emsg)
|
assert(command, emsg)
|
||||||
assert(control:send(ack));
|
assert(control:send(ack));
|
||||||
print(command);
|
print(command);
|
||||||
(load(command))();
|
((loadstring or load)(command))();
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user