core/stanza_router.lua

changeset 1156
14f3eb0e7787
parent 1152
4d95e8078405
child 1157
279f79389189
equal deleted inserted replaced
1155:a93b25f1528e 1156:14f3eb0e7787
104 --[[if to and not(hosts[to]) and not(hosts[to_bare]) and (hosts[host] and hosts[host].type ~= "local") then -- not for us? 104 --[[if to and not(hosts[to]) and not(hosts[to_bare]) and (hosts[host] and hosts[host].type ~= "local") then -- not for us?
105 log("warn", "stanza recieved for a non-local server"); 105 log("warn", "stanza recieved for a non-local server");
106 return; -- FIXME what should we do here? 106 return; -- FIXME what should we do here?
107 end]] -- FIXME 107 end]] -- FIXME
108 108
109 -- FIXME do stanzas not of jabber:client get handled by components?
110 if (origin.type == "s2sin" or origin.type == "c2s" or origin.type == "component") and (not xmlns or xmlns == "jabber:server" or xmlns == "jabber:client") then 109 if (origin.type == "s2sin" or origin.type == "c2s" or origin.type == "component") and (not xmlns or xmlns == "jabber:server" or xmlns == "jabber:client") then
111 local event_data = {origin=origin, stanza=stanza}; 110 local event_data = {origin=origin, stanza=stanza};
112 if fire_event(tostring(host or origin.host).."/"..stanza.name, event_data) then return; end 111 if fire_event(tostring(host or origin.host).."/"..stanza.name, event_data) then return; end
113 if origin.type == "s2sin" and not origin.dummy then 112 if origin.type == "s2sin" and not origin.dummy then
114 local host_status = origin.hosts[from_host]; 113 local host_status = origin.hosts[from_host];

mercurial