Software /
code /
prosody
Comparison
core/s2smanager.lua @ 257:762274c98040
I knew it ;) Fix sending error replies over s2s (though we shouldn't be error'ing on stream:features anyway)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 14 Nov 2008 02:33:20 +0000 |
parent | 256:c14ddd0912a2 |
child | 258:a93ccd84db83 |
comparison
equal
deleted
inserted
replaced
256:c14ddd0912a2 | 257:762274c98040 |
---|---|
46 if host.sendq then t_insert(host.sendq, data); | 46 if host.sendq then t_insert(host.sendq, data); |
47 else host.sendq = { data }; end | 47 else host.sendq = { data }; end |
48 elseif host.type == "local" or host.type == "component" then | 48 elseif host.type == "local" or host.type == "component" then |
49 log("error", "Trying to send a stanza to ourselves??") | 49 log("error", "Trying to send a stanza to ourselves??") |
50 log("error", "Traceback: %s", get_traceback()); | 50 log("error", "Traceback: %s", get_traceback()); |
51 log("error", "Stanza: %s", stanza); | 51 log("error", "Stanza: %s", data); |
52 else | 52 else |
53 (host.log or log)("debug", "going to send stanza to "..to_host.." from "..from_host); | 53 (host.log or log)("debug", "going to send stanza to "..to_host.." from "..from_host); |
54 -- FIXME | 54 -- FIXME |
55 if hosts[to_host].from_host ~= from_host then | 55 if hosts[to_host].from_host ~= from_host then |
56 log("error", "WARNING! This might, possibly, be a bug, but it might not..."); | 56 log("error", "WARNING! This might, possibly, be a bug, but it might not..."); |