# HG changeset patch # User Matthew Wild # Date 1430935109 -3600 # Node ID 06116b2789f050411e6e855bf03639ab2dbdcf68 # Parent deaa3d66dc2cd7bd578c2b9e87bc437e1a065c64 moduleapi: Remove accidental use of undefined and unnecessary 'priority' variable diff -r deaa3d66dc2c -r 06116b2789f0 core/moduleapi.lua --- a/core/moduleapi.lua Wed May 06 18:37:46 2015 +0100 +++ b/core/moduleapi.lua Wed May 06 18:58:29 2015 +0100 @@ -130,7 +130,7 @@ end function api:wrap_global(event, handler) - return self:hook_object_event(prosody.events, event, handler, priority); + return self:hook_object_event(prosody.events, event, handler); end function api:require(lib)