# HG changeset patch # User Kim Alvefur # Date 1373278793 -7200 # Node ID 479df3e0b012943e3b2442f8d4b548ac968ec4f1 # Parent aa93cf0b1242e3dc28f45d9460b73be159b3e2be mod_mam/rsm.lib: Fix serialization of before = true diff -r aa93cf0b1242 -r 479df3e0b012 mod_mam/rsm.lib.lua --- 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)