Diff

util/stanza.lua @ 1874:262ea889016f

util.stanza: Add __type to metatable
author Matthew Wild <mwild1@gmail.com>
date Sun, 04 Oct 2009 14:03:08 +0100
parent 1523:841d61be198f
child 1931:f203330eb82e
line wrap: on
line diff
--- a/util/stanza.lua	Sat Oct 03 18:40:47 2009 +0100
+++ b/util/stanza.lua	Sun Oct 04 14:03:08 2009 +0100
@@ -34,7 +34,7 @@
 
 module "stanza"
 
-stanza_mt = {};
+stanza_mt = { __type = "stanza" };
 stanza_mt.__index = stanza_mt;
 
 function stanza(name, attr)