aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-01-26 15:25:16 +0100
committerKim Alvefur <zash@zash.se>2015-01-26 15:25:16 +0100
commitb21f268615f10ee6360dfb1f01af55fc35a02970 (patch)
treec07999d097746e84683ab1fb9b60ceebce94421d /core/stanza_router.lua
parente0c0cffcc27601ec9e4dd3d6fcb556baa21f1e21 (diff)
parent283cee6209641426364ce4bf9e8cce1b6ca2e3dc (diff)
downloadprosody-b21f268615f10ee6360dfb1f01af55fc35a02970.tar.gz
prosody-b21f268615f10ee6360dfb1f01af55fc35a02970.zip
Merge 0.9->0.10
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r--core/stanza_router.lua2
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