core/modulemanager.lua

changeset 1447
cc20d6dfa32d
parent 1394
2ebed659b958
child 1504
9d8c35e98ca2
equal deleted inserted replaced
1446:109ca9e7a6f3 1447:cc20d6dfa32d
255 log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin.type, stanza.name, xmlns); -- we didn't handle it 255 log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin.type, stanza.name, xmlns); -- we didn't handle it
256 if stanza.attr.xmlns == "jabber:client" then 256 if stanza.attr.xmlns == "jabber:client" then
257 if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then 257 if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then
258 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); 258 origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
259 end 259 end
260 elseif not(name == "features" and xmlns == "http://etherx.jabber.org/streams") then -- FIXME remove check once we handle S2S features 260 elseif not((name == "features" or name == "error") and xmlns == "http://etherx.jabber.org/streams") then -- FIXME remove check once we handle S2S features
261 origin:close("unsupported-stanza-type"); 261 origin:close("unsupported-stanza-type");
262 end 262 end
263 end 263 end
264 end 264 end
265 265

mercurial