Comparison

plugins/mod_s2s/mod_s2s.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 5013:ab693eea0869
child 5173:b22d24b5a89a
comparison
equal deleted inserted replaced
5119:d868ce990838 5120:bcabea740c00
496 initialize_session(session); 496 initialize_session(session);
497 end 497 end
498 498
499 s2sout.set_listener(listener); 499 s2sout.set_listener(listener);
500 500
501 module:add_item("net-provider", { 501 module:provides("net", {
502 name = "s2s"; 502 name = "s2s";
503 listener = listener; 503 listener = listener;
504 default_port = 5269; 504 default_port = 5269;
505 encryption = "starttls"; 505 encryption = "starttls";
506 multiplex = { 506 multiplex = {