aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-12 00:52:18 +0200
committerKim Alvefur <zash@zash.se>2018-10-12 00:52:18 +0200
commit7aa9b58533e1eb64be42c247d2736fc1e8864ff1 (patch)
tree8e5a660994a62c814ce8258d5002f2fd9857652c /util
parent970307dbfb809e76cef3e32e29dbe363277f9c66 (diff)
downloadprosody-7aa9b58533e1eb64be42c247d2736fc1e8864ff1.tar.gz
prosody-7aa9b58533e1eb64be42c247d2736fc1e8864ff1.zip
util.stanza: Set preserialize as freeze metamethod
Diffstat (limited to 'util')
-rw-r--r--util/stanza.lua2
1 files changed, 2 insertions, 0 deletions
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