From 5d6a19aa9c2083320bf9b952d1cc8128b0e147bf Mon Sep 17 00:00:00 2001 From: Robin Wellner Date: Sat, 8 Mar 2014 08:30:45 +0100 Subject: [PATCH] Prevent leaking of args to global scope --- lurker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lurker.lua b/lurker.lua index 5c887a4..5fb6bb6 100644 --- a/lurker.lua +++ b/lurker.lua @@ -64,7 +64,7 @@ end function lurker.initwrappers() for _, v in pairs(lovecallbacknames) do lurker.funcwrappers[v] = function(...) - args = {...} + local args = {...} xpcall(function() return lurker.lovefuncs[v] and lurker.lovefuncs[v](unpack(args)) end, lurker.onerror)