portmanager: import pairs() (thanks Maranda)
authorMatthew Wild <mwild1@gmail.com>
Fri, 5 Apr 2013 12:06:26 +0000 (13:06 +0100)
committerMatthew Wild <mwild1@gmail.com>
Fri, 5 Apr 2013 12:06:26 +0000 (13:06 +0100)
core/portmanager.lua

index 1b3740cf91f444e1172c3ebd32a230d99f8245bd..1b767a097f9aef7bfd074ef017bc09ae896072c7 100644 (file)
@@ -9,7 +9,7 @@ local set = require "util.set";
 
 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;