Software /
code /
prosody
Comparison
plugins/mod_net_multiplex.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 | 4619:d5739b8b7161 |
child | 6380:4220ffb87b22 |
comparison
equal
deleted
inserted
replaced
5119:d868ce990838 | 5120:bcabea740c00 |
---|---|
55 | 55 |
56 function listener.ondisconnect(conn, err) | 56 function listener.ondisconnect(conn, err) |
57 buffers[conn] = nil; -- warn if no buffer? | 57 buffers[conn] = nil; -- warn if no buffer? |
58 end | 58 end |
59 | 59 |
60 module:add_item("net-provider", { | 60 module:provides("net", { |
61 name = "multiplex"; | 61 name = "multiplex"; |
62 config_prefix = ""; | 62 config_prefix = ""; |
63 listener = listener; | 63 listener = listener; |
64 }); | 64 }); |
65 | 65 |