Changeset

680:734994b61907

Restore fix for missing last_add on deserialized stanzas. Thanks to tsing for discovering.
author Matthew Wild <mwild1@gmail.com>
date Fri, 09 Jan 2009 17:27:53 +0000
parents 679:9506bf204b1a
children 681:686b73503ce8
files util/stanza.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util/stanza.lua	Fri Jan 09 16:33:09 2009 +0000
+++ b/util/stanza.lua	Fri Jan 09 17:27:53 2009 +0000
@@ -199,6 +199,9 @@
 				end
 			end
 			stanza.tags = tags;
+			if not stanza.last_add then
+				stanza.last_add = {};
+			end
 		end
 	end