# HG changeset patch # User Waqas Hussain # Date 1390083850 18000 # Node ID 60d86c9e02ec0d5a431fc7e58562eb7d410bcd8f # Parent 2d652afa57e408a3d75c293ebf620b73a8da822c tools/ejabberd2prosody: “xmlelement” can be “xmlel” in newer ejabberd (thanks cr). diff -r 2d652afa57e4 -r 60d86c9e02ec tools/ejabberd2prosody.lua --- 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]));