aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-16 20:19:15 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-16 20:19:15 +0100
commit7a4e9c758eb9b171943377eff28d900e2f2ccba8 (patch)
tree65a3becbe7b3aa277d0388edf624947b8d47681c /core
parentd18374c137186bea7b8675aa357cc492a1c95fe1 (diff)
downloadprosody-7a4e9c758eb9b171943377eff28d900e2f2ccba8.tar.gz
prosody-7a4e9c758eb9b171943377eff28d900e2f2ccba8.zip
stanza_router: Remove FIXME and replace with meaningful comment
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 6eb04ae2..44712fa7 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -47,7 +47,9 @@ local fire_event = require "core.eventmanager2".fire_event;
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