Comparison

plugins/mod_s2s/mod_s2s.lua @ 6602:61b6a4fc65f1

Merge 0.9->0.10
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Mar 2015 16:48:39 +0000
parent 6473:7c8f58d2b331
parent 6600:b1c84d220c40
child 6608:b6e558febb7a
comparison
equal deleted inserted replaced
6587:54306208f30b 6602:61b6a4fc65f1
497 497
498 function session_stream_attrs(session, from, to, attr) 498 function session_stream_attrs(session, from, to, attr)
499 if not from or (hosts[from] and hosts[from].modules.dialback) then 499 if not from or (hosts[from] and hosts[from].modules.dialback) then
500 attr["xmlns:db"] = 'jabber:server:dialback'; 500 attr["xmlns:db"] = 'jabber:server:dialback';
501 end 501 end
502 if not from then
503 attr.from = '';
504 end
505 if not to then
506 attr.to = '';
507 end
502 end 508 end
503 509
504 -- Session initialization logic shared by incoming and outgoing 510 -- Session initialization logic shared by incoming and outgoing
505 local function initialize_session(session) 511 local function initialize_session(session)
506 local stream = new_xmpp_stream(session, stream_callbacks); 512 local stream = new_xmpp_stream(session, stream_callbacks);