Software /
code /
prosody
Diff
plugins/mod_c2s.lua @ 5120:bcabea740c00
mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item().
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 12 Sep 2012 22:22:31 +0500 |
parent | 5097:6c52a7a881cc |
child | 5228:edabb34417b7 |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Wed Sep 12 22:03:57 2012 +0500 +++ b/plugins/mod_c2s.lua Wed Sep 12 22:22:31 2012 +0500 @@ -249,7 +249,7 @@ sessions[conn] = session; end -module:add_item("net-provider", { +module:provides("net", { name = "c2s"; listener = listener; default_port = 5222; @@ -259,7 +259,7 @@ }; }); -module:add_item("net-provider", { +module:provides("net", { name = "legacy_ssl"; listener = listener; encryption = "ssl";