Changeset

246:0904fd197cbe

Fixed stanza deserialization
author Waqas Hussain <waqas20@gmail.com>
date Thu, 13 Nov 2008 12:07:53 +0500
parents 240:c48dbfa6b1a6
children 247:681b29aa134f
files util/stanza.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util/stanza.lua	Mon Nov 10 00:00:46 2008 +0000
+++ b/util/stanza.lua	Thu Nov 13 12:07:53 2008 +0500
@@ -149,6 +149,9 @@
 			end
 			stanza.tags = tags;
 		end
+		if not stanza.last_add then
+			stanza.last_add = {};
+		end
 	end
 	
 	return stanza;