core/modulemanager.lua
changeset 6663 30672cc3d8ee
parent 6425 6d4d87a89026
child 6664 90e846e8a788
--- a/core/modulemanager.lua	Wed May 06 19:11:27 2015 +0100
+++ b/core/modulemanager.lua	Wed May 06 19:15:35 2015 +0100
@@ -17,13 +17,13 @@
 local hosts = hosts;
 local prosody = prosody;
 
-local pcall, xpcall = pcall, xpcall;
+local xpcall = xpcall;
 local setmetatable, rawget = setmetatable, rawget;
 local ipairs, pairs, type, tostring, t_insert = ipairs, pairs, type, tostring, table.insert;
 
 local debug_traceback = debug.traceback;
 local unpack, select = unpack, select;
-pcall = function(f, ...)
+local pcall = function(f, ...)
 	local n = select("#", ...);
 	local params = {...};
 	return xpcall(function() return f(unpack(params, 1, n)) end, function(e) return tostring(e).."\n"..debug_traceback(); end);