mod_s2s: Remove compat with namespace issue from Prosody pre-0.6.2
authorKim Alvefur <zash@zash.se>
Mon, 30 May 2016 11:30:32 +0000 (13:30 +0200)
committerKim Alvefur <zash@zash.se>
Mon, 30 May 2016 11:30:32 +0000 (13:30 +0200)
plugins/mod_s2s/mod_s2s.lua

index 16320ad169afd651a081daaa4d05f23556aead9a..f05e2a95dd09af9906e5913e2959a7bdadc79c82 100644 (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);