Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
679:9506bf204b1a | 680:734994b61907 |
---|---|
197 if type(child) == "table" then | 197 if type(child) == "table" then |
198 t_insert(tags, child); | 198 t_insert(tags, child); |
199 end | 199 end |
200 end | 200 end |
201 stanza.tags = tags; | 201 stanza.tags = tags; |
202 if not stanza.last_add then | |
203 stanza.last_add = {}; | |
204 end | |
202 end | 205 end |
203 end | 206 end |
204 | 207 |
205 return stanza; | 208 return stanza; |
206 end | 209 end |