Diff

util/stanza.lua @ 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
parent 627:f0a4498ae996
child 689:94b043fbaf33
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