aboutsummaryrefslogtreecommitdiffstats
path: root/core/xmlhandlers.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-18 19:58:29 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-18 19:58:29 +0000
commita6970f5b2b46915fa39ede1d11eb4758bc18cb9d (patch)
tree552d0eb9b5a6b0f7ba45aa15b6e929b5a0d49b22 /core/xmlhandlers.lua
parent99b617b8b6839a496ee26033b1b613a9f11e8f62 (diff)
downloadprosody-a6970f5b2b46915fa39ede1d11eb4758bc18cb9d.tar.gz
prosody-a6970f5b2b46915fa39ede1d11eb4758bc18cb9d.zip
*ahem* Yes, move along please... though really, quite a classic. :)
Diffstat (limited to 'core/xmlhandlers.lua')
-rw-r--r--core/xmlhandlers.lua2
1 files changed, 1 insertions, 1 deletions
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);