diff options
author | Kim Alvefur <zash@zash.se> | 2020-04-23 18:40:57 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-04-23 18:40:57 +0200 |
commit | e39789a5fff23500a7ff393ea67d7bf80175d9be (patch) | |
tree | 41e5e7639591ed2450de99a3b9b96a7cf3cb785a | |
parent | bd9c89039785925ef833c2081150adaf9acbdb94 (diff) | |
download | prosody-e39789a5fff23500a7ff393ea67d7bf80175d9be.tar.gz prosody-e39789a5fff23500a7ff393ea67d7bf80175d9be.zip |
util.rsm: Explicitly serialize numbers in correct format
-rw-r--r-- | util/rsm.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/rsm.lua b/util/rsm.lua index b5afd62a..aade3c19 100644 --- a/util/rsm.lua +++ b/util/rsm.lua @@ -61,7 +61,13 @@ local element_generators = setmetatable({ else st:tag("before"):text(tostring(data)):up(); end - end + end; + max = function (st, data) + st:tag("max"):text(inttostr(data)):up(); + end; + count = function (st, data) + st:tag("count"):text(inttostr(data)):up(); + end; }, { __index = function(_, name) return function(st, data) |