diff mod_mam/rsm.lib.lua @ 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 57206f8f7b09
children bfde5e5318d7
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)