mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-07-27 18:42:18 +00:00
Merge pull request #1 from gvx/patch-1
Prevent leaking of args to global scope in lurker.initwrappers()
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user