Software /
code /
prosody
Diff
plugins/mod_http.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 | 5093:1ce9e8068dda |
child | 5180:4ef69555a879 |
line wrap: on
line diff
--- a/plugins/mod_http.lua Wed Sep 12 22:03:57 2012 +0500 +++ b/plugins/mod_http.lua Wed Sep 12 22:22:31 2012 +0500 @@ -123,7 +123,7 @@ end end -module:add_item("net-provider", { +module:provides("net", { name = "http"; listener = server.listener; default_port = 5280; @@ -132,7 +132,7 @@ }; }); -module:add_item("net-provider", { +module:provides("net", { name = "https"; listener = server.listener; default_port = 5281;