Changeset

4744:3be37768720d

portmanager: Fix breakage (import ALL the functions)
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Apr 2012 01:44:08 +0100
parents 4743:70d68e789d93
children 4745:d5b1a7531693
files core/portmanager.lua
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);