aboutsummaryrefslogtreecommitdiffstats
path: root/util/rsm.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-06 18:26:50 +0100
committerKim Alvefur <zash@zash.se>2021-03-06 18:26:50 +0100
commit6bae44fea856e81ec6ce597628586c168cc4b2b8 (patch)
treeb031ad8decafdfebb18cdd3df6495e796524bab6 /util/rsm.lua
parent55fb09153688d76c86a237c0fb6c2e7beb156078 (diff)
downloadprosody-6bae44fea856e81ec6ce597628586c168cc4b2b8.tar.gz
prosody-6bae44fea856e81ec6ce597628586c168cc4b2b8.zip
util.rsm: Correctly coerce integer value for <index> (fix #1642)
Diffstat (limited to 'util/rsm.lua')
-rw-r--r--util/rsm.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/rsm.lua b/util/rsm.lua
index affa85f5..e6060af8 100644
--- a/util/rsm.lua
+++ b/util/rsm.lua
@@ -65,6 +65,9 @@ local element_generators = setmetatable({
max = function (st, data)
st:text_tag("max", inttostr(data));
end;
+ index = function (st, data)
+ st:text_tag("index", inttostr(data));
+ end;
count = function (st, data)
st:text_tag("count", inttostr(data));
end;