Comparison

plugins/mod_s2s/s2sout.lib.lua @ 4906:89df1f03546a

mod_s2s, s2sout.lib: Send stream header in onconnect()
author Matthew Wild <mwild1@gmail.com>
date Thu, 24 May 2012 03:08:42 +0100
parent 4832:6b3aec1e0d9f
child 4922:d1fdc545f8b2
comparison
equal deleted inserted replaced
4905:274ef78aa173 4906:89df1f03546a
312 312
313 -- Register this outgoing connection so that xmppserver_listener knows about it 313 -- Register this outgoing connection so that xmppserver_listener knows about it
314 -- otherwise it will assume it is a new incoming connection 314 -- otherwise it will assume it is a new incoming connection
315 s2s_listener.register_outgoing(conn, host_session); 315 s2s_listener.register_outgoing(conn, host_session);
316 316
317 host_session:open_stream(from_host, to_host);
318
319 log("debug", "Connection attempt in progress..."); 317 log("debug", "Connection attempt in progress...");
320 return true; 318 return true;
321 end 319 end
322 320
323 module:hook_global("service-added", function (event) 321 module:hook_global("service-added", function (event)