# HG changeset patch # User Matthew Wild # Date 1227038309 0 # Node ID bffd80e8c7a3145140471dc263746bb5733f301b # Parent 8d15b073fdbec8d461f2e823524e15d5a27a46e7 *ahem* Yes, move along please... though really, quite a classic. :) diff -r 8d15b073fdbe -r bffd80e8c7a3 core/xmlhandlers.lua --- 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);