Software /
code /
prosody
Diff
net/xmppserver_listener.lua @ 2950:0250fba6be72
xmppserver_listener: Compatibility fix for older Prosodies with the s2s xmlns bug
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 30 Mar 2010 19:44:50 +0100 |
parent | 2923:b7049746bd29 |
child | 2951:294c359a05f5 |
line wrap: on
line diff
--- a/net/xmppserver_listener.lua Tue Mar 30 19:40:16 2010 +0100 +++ b/net/xmppserver_listener.lua Tue Mar 30 19:44:50 2010 +0100 @@ -32,6 +32,9 @@ local function handleerr(err) log("error", "Traceback[s2s]: %s: %s", tostring(err), debug.traceback()); end function stream_callbacks.handlestanza(a, b) + if b.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client + b.attr.xmlns = nil; + end xpcall(function () core_process_stanza(a, b) end, handleerr); end