Software /
code /
prosody
Comparison
core/s2smanager.lua @ 258:a93ccd84db83
Yep, s2s definitely works now. This is just a small fix for logging...
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 14 Nov 2008 02:38:41 +0000 |
parent | 257:762274c98040 |
child | 259:1485d272400d |
comparison
equal
deleted
inserted
replaced
257:762274c98040 | 258:a93ccd84db83 |
---|---|
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", data); | 51 log("error", "Stanza: %s", tostring(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..."); |