util/stanza.lua

changeset 1415
957a81b72cb2
parent 1151
8096941b6734
child 1416
f916f0ff90e5
--- a/util/stanza.lua	Thu Jun 25 10:04:22 2009 +0500
+++ b/util/stanza.lua	Thu Jun 25 17:19:13 2009 +0500
@@ -200,6 +200,8 @@
 function deserialize(stanza)
 	-- Set metatable
 	if stanza then
+		local attr = stanza.attr;
+		for i=1,#attr do attr[i] = nil; end
 		setmetatable(stanza, stanza_mt);
 		for _, child in ipairs(stanza) do
 			if type(child) == "table" then

mercurial