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 | f4572c17325ceab3d69a137f2bc508c33638cc94 (patch) | |
tree | 41e5e7639591ed2450de99a3b9b96a7cf3cb785a /util | |
parent | 67372d19bdab286a5900494a0be694aacec7d9b6 (diff) | |
download | prosody-f4572c17325ceab3d69a137f2bc508c33638cc94.tar.gz prosody-f4572c17325ceab3d69a137f2bc508c33638cc94.zip |
util.rsm: Explicitly serialize numbers in correct format
Diffstat (limited to 'util')
-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) |