# HG changeset patch # User Matthew Wild # Date 1335573848 -3600 # Node ID 3be37768720d1c24dd7854efd501a3834d3d3f69 # Parent 70d68e789d9382d4dfd3496e4e4052849f6b0463 portmanager: Fix breakage (import ALL the functions) diff -r 70d68e789d93 -r 3be37768720d core/portmanager.lua --- a/core/portmanager.lua Sat Apr 28 01:27:46 2012 +0100 +++ b/core/portmanager.lua Sat Apr 28 01:44:08 2012 +0100 @@ -5,6 +5,10 @@ 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 @@ 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);