diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-30 19:44:50 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-30 19:44:50 +0100 |
commit | 64a003d115e699b5076af196e2f7cbf3e345a618 (patch) | |
tree | 9143f2731e3e09035bbac8b34a716f22067cdc84 /net | |
parent | ad6a65efa1506e70e460430e9636573eed9f2abc (diff) | |
download | prosody-64a003d115e699b5076af196e2f7cbf3e345a618.tar.gz prosody-64a003d115e699b5076af196e2f7cbf3e345a618.zip |
xmppserver_listener: Compatibility fix for older Prosodies with the s2s xmlns bug
Diffstat (limited to 'net')
-rw-r--r-- | net/xmppserver_listener.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index 46b886f7..dc3c2bb4 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -32,6 +32,9 @@ end 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 |