core/stanza_router.lua

changeset 1445
810037988642
parent 1444
19598161ae22
child 1466
95f8024c77fc
equal deleted inserted replaced
1444:19598161ae22 1445:810037988642
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 if not modules_handle_stanza(h.host, origin, stanza) then
154 if stanza.attr.xmlns == "jabber:client" and stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then 154 if stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then
155 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); 155 origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
156 end 156 end
157 end 157 end
158 else 158 else
159 core_route_stanza(origin, stanza); 159 core_route_stanza(origin, stanza);

mercurial