aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-09-18 16:14:43 +0200
committerKim Alvefur <zash@zash.se>2015-09-18 16:14:43 +0200
commit9ef58d26781742a3b120364f7f828bb717af3882 (patch)
treec6f668db52381913c3a11b14c696df4c9bd5a8ac /tools
parenta6f64405217d5bd89d60794eca0324844e5e48ef (diff)
downloadprosody-9ef58d26781742a3b120364f7f828bb717af3882.tar.gz
prosody-9ef58d26781742a3b120364f7f828bb717af3882.zip
xep227toprosody: Pass parser to callbacks (needed since addition of stanza size limits)
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 0862b0c1..81c9863b 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