From cf4d29f86d722d7398b59c41c190d545e8c7a8c2 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Sun, 29 Apr 2012 20:46:35 +0200 Subject: [PATCH] Select loadstring or load for Lua 5.1/5.2 respectively --- test/testsrvr.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testsrvr.lua b/test/testsrvr.lua index ff31442..72b93ab 100644 --- a/test/testsrvr.lua +++ b/test/testsrvr.lua @@ -15,6 +15,6 @@ while 1 do assert(command, emsg) assert(control:send(ack)); print(command); - (load(command))(); + ((loadstring or load)(command))(); end end