core/s2smanager.lua

changeset 253
f2869ded1d37
parent 252
a698993bd49b
child 254
6eb3dea1d68b
equal deleted inserted replaced
252:a698993bd49b 253:f2869ded1d37
43 43
44 -- Queue stanza until we are able to send it 44 -- Queue stanza until we are able to send it
45 if host.sendq then t_insert(host.sendq, data); 45 if host.sendq then t_insert(host.sendq, data);
46 else host.sendq = { data }; end 46 else host.sendq = { data }; end
47 else 47 else
48 host.log("debug", "going to send stanza to "..to_host.." from "..from_host); 48 (host.log or log)("debug", "going to send stanza to "..to_host.." from "..from_host);
49 -- FIXME 49 -- FIXME
50 if hosts[to_host].from_host ~= from_host then log("error", "WARNING! This might, possibly, be a bug, but it might not..."); end 50 if hosts[to_host].from_host ~= from_host then log("error", "WARNING! This might, possibly, be a bug, but it might not..."); end
51 hosts[to_host].sends2s(data); 51 hosts[to_host].sends2s(data);
52 host.log("debug", "stanza sent over "..hosts[to_host].type); 52 host.log("debug", "stanza sent over "..hosts[to_host].type);
53 end 53 end

mercurial