Restore fix for missing last_add on deserialized stanzas. Thanks to tsing for discove...
authorMatthew Wild <mwild1@gmail.com>
Fri, 9 Jan 2009 17:27:53 +0000 (17:27 +0000)
committerMatthew Wild <mwild1@gmail.com>
Fri, 9 Jan 2009 17:27:53 +0000 (17:27 +0000)
util/stanza.lua

index 6af7e2b22e386b3ff045bea23c5badc0b7d39463..c4cecb6f9e36984af4e98c093acb04ab0d29ea9c 100644 (file)
@@ -199,6 +199,9 @@ function deserialize(stanza)
                                end
                        end
                        stanza.tags = tags;
+                       if not stanza.last_add then
+                               stanza.last_add = {};
+                       end
                end
        end