Changeset

6871:e4b5885b7712

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Fri, 25 Sep 2015 18:11:45 +0200
parents 6868:dcf9ceac9265 (current diff) 6870:d5b416070f70 (diff)
children 6888:39c5c49616ab
files
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tools/xep227toprosody.lua	Fri Sep 25 18:08:25 2015 +0200
+++ b/tools/xep227toprosody.lua	Fri Sep 25 18:11:45 2015 +0200
@@ -202,7 +202,7 @@
 	--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 @@
 			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 @@
 function lxp_handlers.CharacterData(parser, string)
 	if curr_host ~= "" then
 		-- forward to xmlhandlers
-		user_handlers:CharacterData(string);
+		user_handlers.CharacterData(parser, string);
 	end
 end