diff options
author | Kim Alvefur <zash@zash.se> | 2016-12-13 18:16:20 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-12-13 18:16:20 +0100 |
commit | 2c7554d63405a862ae1681c52b24de1efe350a96 (patch) | |
tree | 1b672c773014c9bf337d7ee9174f2010f3cd3891 /core | |
parent | e701756ba976c28d2532f3d113f24429c457dec5 (diff) | |
download | prosody-2c7554d63405a862ae1681c52b24de1efe350a96.tar.gz prosody-2c7554d63405a862ae1681c52b24de1efe350a96.zip |
core.stanza_router: Remove hack for allowing resource binding IQ before resource binding
Diffstat (limited to 'core')
-rw-r--r-- | core/stanza_router.lua | 10 |
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 |