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
commitf4572c17325ceab3d69a137f2bc508c33638cc94 (patch)
tree41e5e7639591ed2450de99a3b9b96a7cf3cb785a /util
parent67372d19bdab286a5900494a0be694aacec7d9b6 (diff)
downloadprosody-f4572c17325ceab3d69a137f2bc508c33638cc94.tar.gz
prosody-f4572c17325ceab3d69a137f2bc508c33638cc94.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)