Changeset

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
parents 2949:ef19faa7d106
children 2951:294c359a05f5 2955:f807dc244a5b 2959:62a3f824292a
files net/xmppserver_listener.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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