aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-01-27 23:11:06 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-01-27 23:11:06 +0500
commit05ebb93247f04e65a371e67728579cc5ff2db0b9 (patch)
treee1a7bb3fab880c45d0bcc64a6ff0ddedca600210
parent72962d8bbeb85ae54d5aa31257c26ee6e9f4061d (diff)
downloadprosody-05ebb93247f04e65a371e67728579cc5ff2db0b9.tar.gz
prosody-05ebb93247f04e65a371e67728579cc5ff2db0b9.zip
xep227toprosody: Fixed some global accesses.
-rw-r--r--tools/xep227toprosody.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/xep227toprosody.lua b/tools/xep227toprosody.lua
index d3c89244..313b2194 100644
--- a/tools/xep227toprosody.lua
+++ b/tools/xep227toprosody.lua
@@ -141,13 +141,12 @@ end
-----------------------------------------------------------------------
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 @@ function lxp_handlers.EndElement(parser, elementname)
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");