Diff

core/portmanager.lua @ 5432:53b16286509a

portmanager: import pairs() (thanks Maranda)
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Apr 2013 13:06:26 +0100
parent 5426:1b20095eb230
child 5549:cce17bcb7c94
line wrap: on
line diff
--- a/core/portmanager.lua	Fri Apr 05 10:04:53 2013 +0100
+++ b/core/portmanager.lua	Fri Apr 05 13:06:26 2013 +0100
@@ -9,7 +9,7 @@
 
 local table = table;
 local setmetatable, rawset, rawget = setmetatable, rawset, rawget;
-local type, tonumber, tostring, ipairs = type, tonumber, tostring, ipairs;
+local type, tonumber, tostring, ipairs, pairs = type, tonumber, tostring, ipairs, pairs;
 
 local prosody = prosody;
 local fire_event = prosody.events.fire_event;