diff options
author | Kim Alvefur <zash@zash.se> | 2015-01-26 15:25:16 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-01-26 15:25:16 +0100 |
commit | 26854f710c5d0c038738ddfda11406ce13a4536a (patch) | |
tree | c07999d097746e84683ab1fb9b60ceebce94421d | |
parent | 5723bad906dcbef98eb1cdc196675a7a526f97cc (diff) | |
parent | ff0710136d0c83566bd49e7ba2536502babafd15 (diff) | |
download | prosody-26854f710c5d0c038738ddfda11406ce13a4536a.tar.gz prosody-26854f710c5d0c038738ddfda11406ce13a4536a.zip |
Merge 0.9->0.10
-rw-r--r-- | core/stanza_router.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 4f529129..8e86b16f 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -63,7 +63,7 @@ function core_process_stanza(origin, stanza) end if name == "iq" then if not stanza.attr.id then stanza.attr.id = ""; end -- COMPAT Jabiru doesn't send the id attribute on roster requests - if not iq_types[st_type] or (st_type ~= "result" and #stanza.tags ~= 1) then + if not iq_types[st_type] or ((st_type == "set" or st_type == "get") and (#stanza.tags ~= 1)) then origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid IQ type or incorrect number of children")); return; end |