Comparison

core/stanza_router.lua @ 1610:07be0ac220d8

Merge with 0.5
author Matthew Wild <mwild1@gmail.com>
date Mon, 27 Jul 2009 22:42:36 +0100
parent 1609:95d3bcd82334
child 1887:e3c790060c03
child 1899:ccb7d9ccbf24
comparison
equal deleted inserted replaced
1607:d81f5bb1f6b8 1610:07be0ac220d8
148 148
149 if h.type == "component" then 149 if h.type == "component" then
150 component_handle_stanza(origin, stanza); 150 component_handle_stanza(origin, stanza);
151 return; 151 return;
152 end 152 end
153 if not modules_handle_stanza(h.host, origin, stanza) then 153 modules_handle_stanza(h.host, origin, stanza);
154 if stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then
155 origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
156 end
157 end
158 else 154 else
159 core_route_stanza(origin, stanza); 155 core_route_stanza(origin, stanza);
160 end 156 end
161 end 157 end
162 158