Software /
code /
prosody
Comparison
core/portmanager.lua @ 4744:3be37768720d
portmanager: Fix breakage (import ALL the functions)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 01:44:08 +0100 |
parent | 4743:70d68e789d93 |
child | 4786:ad6d4ab40b20 |
comparison
equal
deleted
inserted
replaced
4743:70d68e789d93 | 4744:3be37768720d |
---|---|
2 local server = require "net.server"; | 2 local server = require "net.server"; |
3 | 3 |
4 local log = require "util.logger".init("portmanager"); | 4 local log = require "util.logger".init("portmanager"); |
5 local multitable = require "util.multitable"; | 5 local multitable = require "util.multitable"; |
6 local set = require "util.set"; | 6 local set = require "util.set"; |
7 | |
8 local table, package = table, package; | |
9 local setmetatable, rawset, rawget = setmetatable, rawset, rawget; | |
10 local type = type; | |
7 | 11 |
8 local prosody = prosody; | 12 local prosody = prosody; |
9 local fire_event = prosody.events.fire_event; | 13 local fire_event = prosody.events.fire_event; |
10 | 14 |
11 module "portmanager"; | 15 module "portmanager"; |
55 friendly_message = "initializing SSL support failed, see previous log entries"; | 59 friendly_message = "initializing SSL support failed, see previous log entries"; |
56 end | 60 end |
57 end | 61 end |
58 return friendly_message; | 62 return friendly_message; |
59 end | 63 end |
60 | |
61 module("portmanager", package.seeall); | |
62 | 64 |
63 prosody.events.add_handler("item-added/net-provider", function (event) | 65 prosody.events.add_handler("item-added/net-provider", function (event) |
64 local item = event.item; | 66 local item = event.item; |
65 register_service(item.name, item); | 67 register_service(item.name, item); |
66 end); | 68 end); |