aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/s2s
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-03-14 21:42:08 +0000
committerMatthew Wild <mwild1@gmail.com>2012-03-14 21:42:08 +0000
commit107458131fbd723e4a0bf486000afd61fdcc9824 (patch)
tree2638511d2937469d27861b71a8368683ca0e18d5 /plugins/s2s
parentdd638dc7173768121e53034170b4bf85943018c7 (diff)
downloadprosody-107458131fbd723e4a0bf486000afd61fdcc9824.tar.gz
prosody-107458131fbd723e4a0bf486000afd61fdcc9824.zip
mod_c2s: Use module:add_item() to add the net-provider for portmanager
Diffstat (limited to 'plugins/s2s')
-rw-r--r--plugins/s2s/mod_s2s.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/s2s/mod_s2s.lua b/plugins/s2s/mod_s2s.lua
index a496af57..194364cd 100644
--- a/plugins/s2s/mod_s2s.lua
+++ b/plugins/s2s/mod_s2s.lua
@@ -467,7 +467,8 @@ end
s2sout.set_listener(listener);
-require "core.portmanager".register_service("s2s", {
+module:add_item("net-provider", {
+ name = "s2s";
listener = listener;
default_port = 5269;
encryption = "starttls";