# HG changeset patch # User Waqas Hussain # Date 1264615866 -18000 # Node ID fed7f19db0da0790d37849b7aa2b0aaca13b4b7d # Parent a8ce116335978f528d2e18f396a9aa00d0be7c35 xep227toprosody: Fixed some global accesses. diff -r a8ce11633597 -r fed7f19db0da tools/xep227toprosody.lua --- a/tools/xep227toprosody.lua Wed Jan 27 23:04:13 2010 +0500 +++ b/tools/xep227toprosody.lua Wed Jan 27 23:11:06 2010 +0500 @@ -141,13 +141,12 @@ ----------------------------------------------------------------------- local curr_host = ""; - +local user_name = ""; local cb = { stream_tag = "user", stream_ns = ns_xep227, - user_name = "" }; function cb.streamopened(session, attr) session.notopen = false; @@ -219,7 +218,7 @@ curr_host = "" -- end of host element else -- forward to xmlhandlers - user_handlers:EndElement(elementname, attributes); + user_handlers:EndElement(elementname); end elseif (curr_ns ~= ns_xep227) or (name ~= "server-data") then io.stderr:write("Unhandled XML element: ", name, "\n");