core/stanza_router.lua

changeset 1609
95d3bcd82334
parent 1523
841d61be198f
child 1887
e3c790060c03
child 1899
ccb7d9ccbf24
equal deleted inserted replaced
1608:fb53fe17af36 1609:95d3bcd82334
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

mercurial