util.stanza: Change __type to __name as this is used by Lua 5.3 in some error reporting functions
authorKim Alvefur <zash@zash.se>
Fri, 16 Feb 2018 08:16:38 +0100
changeset 8523 e959bc51de75
parent 8522 e7808f8d7d11
child 8524 6f5ce0f09f40
util.stanza: Change __type to __name as this is used by Lua 5.3 in some error reporting functions
util/stanza.lua
--- a/util/stanza.lua	Thu Feb 15 02:54:52 2018 +0100
+++ b/util/stanza.lua	Fri Feb 16 08:16:38 2018 +0100
@@ -38,7 +38,7 @@
 
 local _ENV = nil;
 
-local stanza_mt = { __type = "stanza" };
+local stanza_mt = { __name = "stanza" };
 stanza_mt.__index = stanza_mt;
 
 local function new_stanza(name, attr, namespaces)