From 7aa9b58533e1eb64be42c247d2736fc1e8864ff1 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 12 Oct 2018 00:52:18 +0200 Subject: util.stanza: Set preserialize as freeze metamethod --- util/stanza.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util/stanza.lua') diff --git a/util/stanza.lua b/util/stanza.lua index 79522ed5..85c89d43 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -359,6 +359,8 @@ local function preserialize(stanza) return s; end +stanza_mt.__freeze = preserialize; + local function deserialize(stanza) -- Set metatable if stanza then -- cgit v1.2.3