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 |