# HG changeset patch # User Kim Alvefur # Date 1373279179 -7200 # Node ID bfde5e5318d780d23c6e9560f93fc56644af544b # Parent 479df3e0b012943e3b2442f8d4b548ac968ec4f1 mod_mam/rsm.lib: Fix parsing of empty before tag diff -r 479df3e0b012 -r bfde5e5318d7 mod_mam/rsm.lib.lua --- a/mod_mam/rsm.lib.lua Mon Jul 08 12:19:53 2013 +0200 +++ b/mod_mam/rsm.lib.lua Mon Jul 08 12:26:19 2013 +0200 @@ -18,7 +18,8 @@ element_parsers = { after = xs_string; before = function(st) - return st:get_text() or true; + local text = st:get_text(); + return text == "" or text; end; max = xs_int; index = xs_int;