Tue, 18 Nov 2008 19:58:29 +0000
*ahem* Yes, move along please... though really, quite a classic. :)
core/xmlhandlers.lua | file | annotate | diff | comparison | revisions |
--- a/core/xmlhandlers.lua Tue Nov 18 19:44:54 2008 +0000 +++ b/core/xmlhandlers.lua Tue Nov 18 19:58:29 2008 +0000 @@ -96,7 +96,7 @@ end function xml_handlers:EndElement(name) curr_ns,name = name:match("^(.+)|([%w%-]+)$"); - if (not stanza) or #stanza.last_add < 0 or (#stanza.last_add > 0 and name ~= stanza.last_add[#stanza.last_add].name) then + if (not stanza) or (#stanza.last_add > 0 and name ~= stanza.last_add[#stanza.last_add].name) then if name == "stream" and cb_streamclosed then log("debug", "Stream closed"); cb_streamclosed(session);