diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-12 00:52:18 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-12 00:52:18 +0200 |
commit | bdab05de820f6933bf1afaf5cd1b0476b20da824 (patch) | |
tree | 8e5a660994a62c814ce8258d5002f2fd9857652c /util/stanza.lua | |
parent | 9a6b45f887c1183e64dd77bc1c1e27c314ac26b1 (diff) | |
download | prosody-bdab05de820f6933bf1afaf5cd1b0476b20da824.tar.gz prosody-bdab05de820f6933bf1afaf5cd1b0476b20da824.zip |
util.stanza: Set preserialize as freeze metamethod
Diffstat (limited to 'util/stanza.lua')
-rw-r--r-- | util/stanza.lua | 2 |
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 |