aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-24 07:34:13 +0100
committerMatthew Wild <mwild1@gmail.com>2008-10-24 07:34:13 +0100
commitd49ea8a12e4440a0df267b575e4925231bda4803 (patch)
tree490259090b642a38634973be5ed4d8d42ec500d1 /core/stanza_router.lua
parent1d1e9fba5745958c092d28563970f1acb4ee4604 (diff)
downloadprosody-d49ea8a12e4440a0df267b575e4925231bda4803.tar.gz
prosody-d49ea8a12e4440a0df267b575e4925231bda4803.zip
Partial s2s commit
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 2203f351..d139bc29 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -21,7 +21,7 @@ function core_process_stanza(origin, stanza)
if stanza.name == "iq" and not(#stanza.tags == 1 and stanza.tags[1].attr.xmlns) then
if stanza.attr.type == "set" or stanza.attr.type == "get" then
error("Invalid IQ");
- elseif #stanza.tags > 1 or not(stanza.attr.type == "error" or stanza.attr.type == "result") then
+ elseif #stanza.tags > 1 and not(stanza.attr.type == "error" or stanza.attr.type == "result") then
error("Invalid IQ");
end
end