aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-23 18:40:57 +0200
committerKim Alvefur <zash@zash.se>2020-04-23 18:40:57 +0200
commite39789a5fff23500a7ff393ea67d7bf80175d9be (patch)
tree41e5e7639591ed2450de99a3b9b96a7cf3cb785a /util
parentbd9c89039785925ef833c2081150adaf9acbdb94 (diff)
downloadprosody-e39789a5fff23500a7ff393ea67d7bf80175d9be.tar.gz
prosody-e39789a5fff23500a7ff393ea67d7bf80175d9be.zip
util.rsm: Explicitly serialize numbers in correct format
Diffstat (limited to 'util')
-rw-r--r--util/rsm.lua8
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)