Changeset

9489:09b873ac7eb8

util.stanza: Set preserialize as freeze metamethod
author Kim Alvefur <zash@zash.se>
date Fri, 12 Oct 2018 00:52:18 +0200
parents 9488:a96a2fbcc6c0
children 9490:6e4fbd12c11c
files util/stanza.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util/stanza.lua	Fri Oct 12 00:51:56 2018 +0200
+++ b/util/stanza.lua	Fri Oct 12 00:52:18 2018 +0200
@@ -359,6 +359,8 @@
 	return s;
 end
 
+stanza_mt.__freeze = preserialize;
+
 local function deserialize(stanza)
 	-- Set metatable
 	if stanza then