Comparison

core/stanza_router.lua @ 1157:279f79389189

stanza_router: Removed some unnecessary code
author Waqas Hussain <waqas20@gmail.com>
date Fri, 15 May 2009 08:42:53 +0500
parent 1156:14f3eb0e7787
child 1163:8b4a57765b04
comparison
equal deleted inserted replaced
1156:14f3eb0e7787 1157:279f79389189
126 component_handle_stanza(origin, stanza); 126 component_handle_stanza(origin, stanza);
127 elseif hosts[to_bare] and hosts[to_bare].type == "component" then -- hack to allow components to handle node@server 127 elseif hosts[to_bare] and hosts[to_bare].type == "component" then -- hack to allow components to handle node@server
128 component_handle_stanza(origin, stanza); 128 component_handle_stanza(origin, stanza);
129 elseif hosts[host] and hosts[host].type == "component" then -- directed at a component 129 elseif hosts[host] and hosts[host].type == "component" then -- directed at a component
130 component_handle_stanza(origin, stanza); 130 component_handle_stanza(origin, stanza);
131 elseif origin.type == "c2s" and stanza.name == "presence" and stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" and stanza.attr.type ~= "error" then
132 handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza);
133 elseif hosts[host] and hosts[host].type == "local" and stanza.name == "iq" and not resource then -- directed at bare JID 131 elseif hosts[host] and hosts[host].type == "local" and stanza.name == "iq" and not resource then -- directed at bare JID
134 core_handle_stanza(origin, stanza); 132 core_handle_stanza(origin, stanza);
135 else 133 else
136 core_route_stanza(origin, stanza); 134 core_route_stanza(origin, stanza);
137 end 135 end