From: Matthew Wild Date: Fri, 9 Jan 2009 17:27:53 +0000 (+0000) Subject: Restore fix for missing last_add on deserialized stanzas. Thanks to tsing for discove... X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=02371234ed5c62f08f8407483d394584e9c2c17c;p=prosody.git Restore fix for missing last_add on deserialized stanzas. Thanks to tsing for discovering. --- diff --git a/util/stanza.lua b/util/stanza.lua index 6af7e2b2..c4cecb6f 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -199,6 +199,9 @@ function deserialize(stanza) end end stanza.tags = tags; + if not stanza.last_add then + stanza.last_add = {}; + end end end