diff core/stanza_router.lua @ 236:eb4ac201aad2

Merge from waqas
author Matthew Wild <mwild1@gmail.com>
date Sun, 09 Nov 2008 21:48:01 +0000
parents 7c8313e055fb
children c1e9b3f3f3a7
line wrap: on
line diff
--- a/core/stanza_router.lua	Sun Nov 09 21:46:42 2008 +0000
+++ b/core/stanza_router.lua	Sun Nov 09 21:48:01 2008 +0000
@@ -33,6 +33,7 @@
 function core_process_stanza(origin, stanza)
 	log("debug", "Received["..origin.type.."]: "..tostring(st.reply(st.reply(stanza))))
 
+	if not stanza.attr.xmlns then stanza.attr.xmlns = "jabber:client"; end -- FIXME Hack. This should be removed when we fix namespace handling.
 	-- TODO verify validity of stanza (as well as JID validity)
 	if stanza.name == "iq" and not(#stanza.tags == 1 and stanza.tags[1].attr.xmlns) then
 		if stanza.attr.type == "set" or stanza.attr.type == "get" then