Software /
code /
prosody
Changeset
2508:fed7f19db0da
xep227toprosody: Fixed some global accesses.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 27 Jan 2010 23:11:06 +0500 |
parents | 2507:a8ce11633597 |
children | 2509:e8a0f2368cde |
files | tools/xep227toprosody.lua |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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");