aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-13 16:58:29 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-13 16:58:29 +0000
commit11ec0f82d756ef0a7d4bcd56151367126b3a20bf (patch)
tree98b20c6ccab370f68dbddeceb22dfd5e62ff67b1 /util/stanza.lua
parent22926813345e5f0046b846cd7817e9483ad4c8e6 (diff)
parenta1740642f2a9af6bf42747fe0b4bf2148fc38449 (diff)
downloadprosody-11ec0f82d756ef0a7d4bcd56151367126b3a20bf.tar.gz
prosody-11ec0f82d756ef0a7d4bcd56151367126b3a20bf.zip
Merge from waqas
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 5339b91e..cfa33c5b 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -157,6 +157,9 @@ function deserialize(stanza)
end
stanza.tags = tags;
end
+ if not stanza.last_add then
+ stanza.last_add = {};
+ end
end
return stanza;