Backed out changeset a4f9ed3f912e (you didn't see this)
[prosody.git] / tools / xep227toprosody.lua
index d3c8924436ace1bdd9f2e3c30540d0a57b8ce0d7..313b2194f19731105cf75cce1fe5f4b63556500e 100644 (file)
@@ -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");