Comparison

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
comparison
equal deleted inserted replaced
2949:ef19faa7d106 2950:0250fba6be72
30 end 30 end
31 end 31 end
32 32
33 local function handleerr(err) log("error", "Traceback[s2s]: %s: %s", tostring(err), debug.traceback()); end 33 local function handleerr(err) log("error", "Traceback[s2s]: %s: %s", tostring(err), debug.traceback()); end
34 function stream_callbacks.handlestanza(a, b) 34 function stream_callbacks.handlestanza(a, b)
35 if b.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client
36 b.attr.xmlns = nil;
37 end
35 xpcall(function () core_process_stanza(a, b) end, handleerr); 38 xpcall(function () core_process_stanza(a, b) end, handleerr);
36 end 39 end
37 40
38 local connlisteners_register = require "net.connlisteners".register; 41 local connlisteners_register = require "net.connlisteners".register;
39 42