Mercurial > prosody-hg
comparison core/stanza_router.lua @ 4553:adcfdaffbccf
stanza_router: Remove obsolete commented code
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 23 Jan 2012 16:24:06 +0000 |
| parents | c3508071af47 |
| children | 6ceabde7af91 |
comparison
equal
deleted
inserted
replaced
| 4552:414d857ee125 | 4553:adcfdaffbccf |
|---|---|
| 102 end | 102 end |
| 103 from_bare = from_node and (from_node.."@"..from_host) or from_host; -- bare JID | 103 from_bare = from_node and (from_node.."@"..from_host) or from_host; -- bare JID |
| 104 if from_resource then from = from_bare.."/"..from_resource; else from = from_bare; end | 104 if from_resource then from = from_bare.."/"..from_resource; else from = from_bare; end |
| 105 stanza.attr.from = from; | 105 stanza.attr.from = from; |
| 106 end | 106 end |
| 107 | |
| 108 --[[if to and not(hosts[to]) and not(hosts[to_bare]) and (hosts[host] and hosts[host].type ~= "local") then -- not for us? | |
| 109 log("warn", "stanza recieved for a non-local server"); | |
| 110 return; -- FIXME what should we do here? | |
| 111 end]] -- FIXME | |
| 112 | 107 |
| 113 if (origin.type == "s2sin" or origin.type == "c2s" or origin.type == "component") and xmlns == nil then | 108 if (origin.type == "s2sin" or origin.type == "c2s" or origin.type == "component") and xmlns == nil then |
| 114 if origin.type == "s2sin" and not origin.dummy then | 109 if origin.type == "s2sin" and not origin.dummy then |
| 115 local host_status = origin.hosts[from_host]; | 110 local host_status = origin.hosts[from_host]; |
| 116 if not host_status or not host_status.authed then -- remote server trying to impersonate some other server? | 111 if not host_status or not host_status.authed then -- remote server trying to impersonate some other server? |
