Diff

core/modulemanager.lua @ 2949:ef19faa7d106

stanza_router, s2smanager, modulemanager: Fix for handling of the default namespace on stanzas, causing sometimes jabber:client to be sent over s2s, and accepted
author Matthew Wild <mwild1@gmail.com>
date Tue, 30 Mar 2010 19:40:16 +0100
parent 2923:b7049746bd29
child 2951:294c359a05f5
line wrap: on
line diff
--- a/core/modulemanager.lua	Wed Mar 24 20:00:22 2010 +0000
+++ b/core/modulemanager.lua	Tue Mar 30 19:40:16 2010 +0100
@@ -270,7 +270,7 @@
 		(handlers[1])(origin, stanza);
 		return true;
 	else
-		if stanza.attr.xmlns == "jabber:client" then
+		if stanza.attr.xmlns == nil then
 			log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin.type, stanza.name, xmlns); -- we didn't handle it
 			if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then
 				origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));