diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-10-24 07:34:13 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-10-24 07:34:13 +0100 |
commit | d49ea8a12e4440a0df267b575e4925231bda4803 (patch) | |
tree | 490259090b642a38634973be5ed4d8d42ec500d1 /core/stanza_router.lua | |
parent | 1d1e9fba5745958c092d28563970f1acb4ee4604 (diff) | |
download | prosody-d49ea8a12e4440a0df267b575e4925231bda4803.tar.gz prosody-d49ea8a12e4440a0df267b575e4925231bda4803.zip |
Partial s2s commit
Diffstat (limited to 'core/stanza_router.lua')
-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 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 |