Select loadstring or load for Lua 5.1/5.2 respectively

master
Florian Zeitz 2012-04-29 20:46:35 +02:00
parent 46736a3355
commit cf4d29f86d
1 changed files with 1 additions and 1 deletions

View File

@ -15,6 +15,6 @@ while 1 do
assert(command, emsg)
assert(control:send(ack));
print(command);
(load(command))();
((loadstring or load)(command))();
end
end