aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-12-14 01:47:19 +0100
committerKim Alvefur <zash@zash.se>2016-12-14 01:47:19 +0100
commit90de22b946faec770a3acffb6b7744f4f6f9f9b0 (patch)
tree7d28b4edd259140fcdf70663b3a4bf06f5a6c7f2 /core/stanza_router.lua
parent21a13c5bca4e9f3b87dff4edfb0a291da128b8a3 (diff)
parent2c7554d63405a862ae1681c52b24de1efe350a96 (diff)
downloadprosody-90de22b946faec770a3acffb6b7744f4f6f9f9b0.tar.gz
prosody-90de22b946faec770a3acffb6b7744f4f6f9f9b0.zip
Merge 0.10->trunk
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r--core/stanza_router.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index af797f08..98952faf 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -79,16 +79,6 @@ function core_process_stanza(origin, stanza)
end
end
- if not origin.full_jid
- and not(name == "iq" and st_type == "set" and stanza.tags[1] and stanza.tags[1].name == "bind"
- and stanza.tags[1].attr.xmlns == "urn:ietf:params:xml:ns:xmpp-bind") then
- -- authenticated client isn't bound and current stanza is not a bind request
- if stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then
- origin.send(st.error_reply(stanza, "auth", "not-authorized")); -- FIXME maybe allow stanzas to account or server
- end
- return;
- end
-
-- TODO also, stanzas should be returned to their original state before the function ends
stanza.attr.from = origin.full_jid;
end