Comparison

core/stanza_router.lua @ 1156:14f3eb0e7787

stanza_router: Removed a FIXME
author Waqas Hussain <waqas20@gmail.com>
date Fri, 15 May 2009 08:30:48 +0500
parent 1152:4d95e8078405
child 1157:279f79389189
comparison
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];