Comparison

core/s2smanager.lua @ 327:9439362caacc

Fixed s2s manager's send queue to not store recieved stanza objects (as these can chnage after the send call)
author Waqas Hussain <waqas20@gmail.com>
date Mon, 17 Nov 2008 18:53:13 +0500
parent 269:3cfac0e5e6ca
child 331:830fd67f9378
comparison
equal deleted inserted replaced
326:99a8317d1235 327:9439362caacc
27 local srvmap = { ["gmail.com"] = "talk.google.com", ["identi.ca"] = "hampton.controlezvous.ca", ["cdr.se"] = "jabber.cdr.se" }; 27 local srvmap = { ["gmail.com"] = "talk.google.com", ["identi.ca"] = "hampton.controlezvous.ca", ["cdr.se"] = "jabber.cdr.se" };
28 28
29 module "s2smanager" 29 module "s2smanager"
30 30
31 function send_to_host(from_host, to_host, data) 31 function send_to_host(from_host, to_host, data)
32 if data.name then data = tostring(data); end
32 local host = hosts[from_host].s2sout[to_host]; 33 local host = hosts[from_host].s2sout[to_host];
33 if host then 34 if host then
34 -- We have a connection to this host already 35 -- We have a connection to this host already
35 if host.type == "s2sout_unauthed" then 36 if host.type == "s2sout_unauthed" then
36 host.log("debug", "trying to send over unauthed s2sout to "..to_host..", authing it now..."); 37 host.log("debug", "trying to send over unauthed s2sout to "..to_host..", authing it now...");