util/stanza.lua
changeset 8892 c4e430c69f88
parent 8648 06c73b010488
child 8893 3490bc478804
--- a/util/stanza.lua	Fri Jun 08 16:15:32 2018 +0200
+++ b/util/stanza.lua	Fri Jun 08 17:04:47 2018 +0200
@@ -135,7 +135,7 @@
 end
 
 function stanza_mt:add_direct_child(child)
-	if type(child) == "table" then
+	if is_stanza(child) then
 		t_insert(self.tags, child);
 	end
 	t_insert(self, child);