Changeset

334:bffd80e8c7a3

*ahem* Yes, move along please... though really, quite a classic. :)
author Matthew Wild <mwild1@gmail.com>
date Tue, 18 Nov 2008 19:58:29 +0000
parents 333:8d15b073fdbe
children 335:906311ff2170
files core/xmlhandlers.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);