aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-28 01:44:08 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-28 01:44:08 +0100
commit6bdcff0371cc2b12e2d318c46adc4685603496d2 (patch)
treeab40ed4f6c5fb9869c0c122e551fe6d1b0b6c3ce
parent0ed5d7e68ca75f8c034f26f81c99a164290df21f (diff)
downloadprosody-6bdcff0371cc2b12e2d318c46adc4685603496d2.tar.gz
prosody-6bdcff0371cc2b12e2d318c46adc4685603496d2.zip
portmanager: Fix breakage (import ALL the functions)
-rw-r--r--core/portmanager.lua6
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);