Comparison

core/s2smanager.lua @ 191:e64c8a44060f

Fix s2s once and for all - Moved dialback to the new mod_dialback (mostly). - Modules can now supply a list of origins to handle to add_handler - Modules can now handle and process any stanza, overriding the core - Modules handle non-jabber:client/jabber:server xmlns'd stanzas
author Matthew Wild <mwild1@gmail.com>
date Sat, 01 Nov 2008 21:07:14 +0000
parent 190:1e993b7deae7
child 199:eccf66b42bd7
comparison
equal deleted inserted replaced
190:1e993b7deae7 191:e64c8a44060f
186 local send_to_host = send_to_host; 186 local send_to_host = send_to_host;
187 function session.send(data) send_to_host(to, from, data); end 187 function session.send(data) send_to_host(to, from, data); end
188 188
189 189
190 if session.direction == "outgoing" then 190 if session.direction == "outgoing" then
191 hosts[to] = session;
192 if sendq then 191 if sendq then
193 session.log("debug", "sending queued stanzas across new outgoing connection to "..session.to_host); 192 session.log("debug", "sending queued stanzas across new outgoing connection to "..session.to_host);
194 for i, data in ipairs(sendq) do 193 for i, data in ipairs(sendq) do
195 send(data); 194 send(data);
196 sendq[i] = nil; 195 sendq[i] = nil;