mod_s2s: Remove compat with namespace issue from Prosody pre-0.6.2

This commit is contained in:
Kim Alvefur 2016-05-30 13:30:32 +02:00
parent 2d8b98ebaf
commit 9dc461298a

View file

@ -434,9 +434,6 @@ end
local function handleerr(err) log("error", "Traceback[s2s]: %s", traceback(tostring(err), 2)); end
function stream_callbacks.handlestanza(session, stanza)
if stanza.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client
stanza.attr.xmlns = nil;
end
stanza = session.filter("stanzas/in", stanza);
if stanza then
return xpcall(function () return core_process_stanza(session, stanza) end, handleerr);