mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
util.stanza: Set preserialize as freeze metamethod
This commit is contained in:
parent
1ab9729aac
commit
e2321c4d37
1 changed files with 2 additions and 0 deletions
|
@ -359,6 +359,8 @@ local function preserialize(stanza)
|
|||
return s;
|
||||
end
|
||||
|
||||
stanza_mt.__freeze = preserialize;
|
||||
|
||||
local function deserialize(stanza)
|
||||
-- Set metatable
|
||||
if stanza then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue