util.stanza: Add __type to metatable
authorMatthew Wild <mwild1@gmail.com>
Sun, 4 Oct 2009 13:03:08 +0000 (14:03 +0100)
committerMatthew Wild <mwild1@gmail.com>
Sun, 4 Oct 2009 13:03:08 +0000 (14:03 +0100)
util/stanza.lua

index e02136f2dee4110b0dd93310f5083f8e071a8c5e..3bf7ea58a4bdcfa89b079da08f710f312bffe672 100644 (file)
@@ -34,7 +34,7 @@ local log = require "util.logger".init("stanza");
 
 module "stanza"
 
-stanza_mt = {};
+stanza_mt = { __type = "stanza" };
 stanza_mt.__index = stanza_mt;
 
 function stanza(name, attr)