Diff

core/stanza_router.lua @ 149:40e443eacbbd

Partial s2s commit
author Matthew Wild <mwild1@gmail.com>
date Fri, 24 Oct 2008 07:34:13 +0100
parent 143:e0f20546cd68
child 150:d09b8a1ab046
line wrap: on
line diff
--- a/core/stanza_router.lua	Thu Oct 23 18:43:00 2008 +0100
+++ b/core/stanza_router.lua	Fri Oct 24 07:34:13 2008 +0100
@@ -21,7 +21,7 @@
 	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