*ahem* Yes, move along please... though really, quite a classic. :)
authorMatthew Wild <mwild1@gmail.com>
Tue, 18 Nov 2008 19:58:29 +0000
changeset 334 bffd80e8c7a3
parent 333 8d15b073fdbe
child 335 906311ff2170
*ahem* Yes, move along please... though really, quite a classic. :)
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);