Diff

core/stanza_router.lua @ 8349:2342eccf4a88

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 25 Oct 2017 01:32:30 +0200
parent 8347:c72db8047440
child 8676:39ab6a296419
child 9067:89e1bf37ff64
line wrap: on
line diff
--- a/core/stanza_router.lua	Sun Oct 22 20:41:11 2017 +0200
+++ b/core/stanza_router.lua	Wed Oct 25 01:32:30 2017 +0200
@@ -140,7 +140,8 @@
 		if h then
 			local event;
 			if xmlns == nil then
-				if stanza.name == "iq" and (stanza.attr.type == "set" or stanza.attr.type == "get") then
+				if stanza.name == "iq" and (stanza.attr.type == "set" or stanza.attr.type == "get")
+					and stanza.tags[1] and stanza.tags[1].attr.xmlns then
 					event = "stanza/iq/"..stanza.tags[1].attr.xmlns..":"..stanza.tags[1].name;
 				else
 					event = "stanza/"..stanza.name;