aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-13 12:07:53 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-13 12:07:53 +0500
commita3018d64216b7df0b18deaa5bb0bc1625c1ed670 (patch)
treef3c764106c8d3d620c40f78e55f6228e1a93c5ba /util/stanza.lua
parenteea12d2279cd8f1e41c9234430e961754be6ce76 (diff)
downloadprosody-a3018d64216b7df0b18deaa5bb0bc1625c1ed670.tar.gz
prosody-a3018d64216b7df0b18deaa5bb0bc1625c1ed670.zip
Fixed stanza deserialization
Diffstat (limited to 'util/stanza.lua')
-rw-r--r--util/stanza.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index 52f372cc..79d3167e 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -149,6 +149,9 @@ function deserialize(stanza)
end
stanza.tags = tags;
end
+ if not stanza.last_add then
+ stanza.last_add = {};
+ end
end
return stanza;