stanza_router: Remove FIXME and replace with meaningful comment

Sat, 16 May 2009 20:19:15 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 16 May 2009 20:19:15 +0100
changeset 1178
f332c033bfc8
parent 1177
97ecfcec2d71
child 1179
503d68e7e18a

stanza_router: Remove FIXME and replace with meaningful comment

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Sat May 16 18:23:54 2009 +0100
+++ b/core/stanza_router.lua	Sat May 16 20:19:15 2009 +0100
@@ -47,7 +47,9 @@
 function core_process_stanza(origin, stanza)
 	(origin.log or log)("debug", "Received[%s]: %s", origin.type, stanza:top_tag())
 
-	if not stanza.attr.xmlns then stanza.attr.xmlns = "jabber:client"; end -- FIXME Hack. This should be removed when we fix namespace handling.
+	-- Currently we guarantee every stanza to have an xmlns, should we keep this rule?
+	if not stanza.attr.xmlns then stanza.attr.xmlns = "jabber:client"; end
+	
 	-- TODO verify validity of stanza (as well as JID validity)
 	if stanza.attr.type == "error" and #stanza.tags == 0 then return; end -- TODO invalid stanza, log
 	if stanza.name == "iq" then

mercurial