diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-28 01:44:08 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-28 01:44:08 +0100 |
commit | 7813edf719386c2c108d5415f8be2af11e6baa7c (patch) | |
tree | ab40ed4f6c5fb9869c0c122e551fe6d1b0b6c3ce /core/portmanager.lua | |
parent | 7a8047ba3e200045b078c8818b50869a3df9ba88 (diff) | |
download | prosody-7813edf719386c2c108d5415f8be2af11e6baa7c.tar.gz prosody-7813edf719386c2c108d5415f8be2af11e6baa7c.zip |
portmanager: Fix breakage (import ALL the functions)
Diffstat (limited to 'core/portmanager.lua')
-rw-r--r-- | core/portmanager.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua index 337b8f4b..3bd143ef 100644 --- a/core/portmanager.lua +++ b/core/portmanager.lua @@ -5,6 +5,10 @@ local log = require "util.logger".init("portmanager"); local multitable = require "util.multitable"; local set = require "util.set"; +local table, package = table, package; +local setmetatable, rawset, rawget = setmetatable, rawset, rawget; +local type = type; + local prosody = prosody; local fire_event = prosody.events.fire_event; @@ -58,8 +62,6 @@ local function error_to_friendly_message(service_name, port, err) return friendly_message; end -module("portmanager", package.seeall); - prosody.events.add_handler("item-added/net-provider", function (event) local item = event.item; register_service(item.name, item); |