aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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);