aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-09-25 18:11:24 +0200
committerKim Alvefur <zash@zash.se>2015-09-25 18:11:24 +0200
commitea219ecbdcd08607b7e54b56ffaa3ac10aa9801a (patch)
treeacb98cdf0005d65cefb429affb0e7d9d11cf37f7 /tools
parentc241eab4631e190e64b993f803019e612a8c4304 (diff)
parent7a845c8961fa0495376bfbacee9b44210b3e7928 (diff)
downloadprosody-ea219ecbdcd08607b7e54b56ffaa3ac10aa9801a.tar.gz
prosody-ea219ecbdcd08607b7e54b56ffaa3ac10aa9801a.zip
Merge 0.9->0.10
Diffstat (limited to 'tools')
-rwxr-xr-xtools/xep227toprosody.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/xep227toprosody.lua b/tools/xep227toprosody.lua
index e95a9d59..521851e9 100755
--- a/tools/xep227toprosody.lua
+++ b/tools/xep227toprosody.lua
@@ -202,7 +202,7 @@ function lxp_handlers.StartElement(parser, elementname, attributes)
--count = count + 1;
if curr_host ~= "" then
-- forward to xmlhandlers
- user_handlers:StartElement(elementname, attributes);
+ user_handlers.StartElement(parser, elementname, attributes);
elseif (curr_ns == xmlns_xep227) and (name == "host") then
curr_host = attributes["jid"]; -- start of host element
print("Begin parsing host "..curr_host);
@@ -226,7 +226,7 @@ function lxp_handlers.EndElement(parser, elementname)
curr_host = "" -- end of host element
else
-- forward to xmlhandlers
- user_handlers:EndElement(elementname);
+ user_handlers.EndElement(parser, elementname);
end
elseif (curr_ns ~= xmlns_xep227) or (name ~= "server-data") then
io.stderr:write("Unhandled XML element: ", name, "\n");
@@ -237,7 +237,7 @@ end
function lxp_handlers.CharacterData(parser, string)
if curr_host ~= "" then
-- forward to xmlhandlers
- user_handlers:CharacterData(string);
+ user_handlers.CharacterData(parser, string);
end
end