From e2321c4d37d4bc08536072799f525910ea4395bf 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') 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