util.stanza: Add __type to metatable
authorMatthew Wild <mwild1@gmail.com>
Sun, 04 Oct 2009 14:03:08 +0100
changeset 1874 262ea889016f
parent 1873 3b770710a1ee
child 1875 334383faf77b
util.stanza: Add __type to metatable
util/stanza.lua
--- 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)