Software /
code /
prosody-modules
Changeset
1101:479df3e0b012
mod_mam/rsm.lib: Fix serialization of before = true
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 08 Jul 2013 12:19:53 +0200 |
parents | 1100:aa93cf0b1242 |
children | 1102:bfde5e5318d7 |
files | mod_mam/rsm.lib.lua |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_mam/rsm.lib.lua Mon Jul 08 00:43:20 2013 +0200 +++ b/mod_mam/rsm.lib.lua Mon Jul 08 12:19:53 2013 +0200 @@ -39,6 +39,13 @@ st:tag("first"):text(tostring(data)):up(); end end; + before = function(st, data) + if data == true then + st:tag("before"):up(); + else + st:tag("before"):text(tostring(data)):up(); + end + end }, { __index = function(_, name) return function(st, data)