tools/ejabberd2prosody.lua
changeset 5998 60d86c9e02ec
parent 5992 72157e928c23
child 5999 e49c0c677c5d
--- a/tools/ejabberd2prosody.lua	Sat Jan 18 20:14:05 2014 +0100
+++ b/tools/ejabberd2prosody.lua	Sat Jan 18 17:24:10 2014 -0500
@@ -30,7 +30,7 @@
 
 function build_stanza(tuple, stanza)
 	assert(type(tuple) == "table", "XML node is of unexpected type: "..type(tuple));
-	if tuple[1] == "xmlelement" then
+	if tuple[1] == "xmlelement" or tuple[1] == "xmlel" then
 		assert(type(tuple[2]) == "string", "element name has type: "..type(tuple[2]));
 		assert(type(tuple[3]) == "table", "element attribute array has type: "..type(tuple[3]));
 		assert(type(tuple[4]) == "table", "element children array has type: "..type(tuple[4]));