Comparison

plugins/mod_component.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 5059:246ba539a5cd
child 5298:6d34ed9fce69
comparison
equal deleted inserted replaced
5119:d868ce990838 5120:bcabea740c00
305 session.destroyed = true; 305 session.destroyed = true;
306 session = nil; 306 session = nil;
307 end 307 end
308 end 308 end
309 309
310 module:add_item("net-provider", { 310 module:provides("net", {
311 name = "component"; 311 name = "component";
312 listener = listener; 312 listener = listener;
313 default_port = 5347; 313 default_port = 5347;
314 multiplex = { 314 multiplex = {
315 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:component%1.*>"; 315 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:component%1.*>";