From a6970f5b2b46915fa39ede1d11eb4758bc18cb9d Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 18 Nov 2008 19:58:29 +0000 Subject: *ahem* Yes, move along please... though really, quite a classic. :) --- core/xmlhandlers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/xmlhandlers.lua b/core/xmlhandlers.lua index 09139904..61a9e387 100644 --- a/core/xmlhandlers.lua +++ b/core/xmlhandlers.lua @@ -96,7 +96,7 @@ function init_xmlhandlers(session, stream_callbacks) 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); -- cgit v1.2.3