Software /
code /
prosody
Diff
tools/ejabberd2prosody.lua @ 5998:60d86c9e02ec
tools/ejabberd2prosody: “xmlelement” can be “xmlel” in newer ejabberd (thanks cr).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 18 Jan 2014 17:24:10 -0500 |
parent | 5992:72157e928c23 |
child | 5999:e49c0c677c5d |
line wrap: on
line diff
--- 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]));