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
commit7813edf719386c2c108d5415f8be2af11e6baa7c (patch)
treeab40ed4f6c5fb9869c0c122e551fe6d1b0b6c3ce
parent7a8047ba3e200045b078c8818b50869a3df9ba88 (diff)
downloadprosody-7813edf719386c2c108d5415f8be2af11e6baa7c.tar.gz
prosody-7813edf719386c2c108d5415f8be2af11e6baa7c.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);