# HG changeset patch # User Kim Alvefur # Date 1401304851 -7200 # Node ID a0375f84d65aca8edf6e6a9dca5c62e75f2f13fe # Parent 9b6fbababb8c56c71b82969fb7a2bae637b0ae9f mod_post_msg: Add wrapper tag with namespace in module so the client doesn't have to diff -r 9b6fbababb8c -r a0375f84d65a mod_post_msg/mod_post_msg.lua --- a/mod_post_msg/mod_post_msg.lua Wed May 28 20:34:57 2014 +0200 +++ b/mod_post_msg/mod_post_msg.lua Wed May 28 21:20:51 2014 +0200 @@ -50,7 +50,7 @@ message = msg({ to = post_body.to or to, from = authed_user, type = post_body.type or "chat"}, post_body.body); if post_body.html then - local html, err = xml.parse(post_body.html); + local html, err = xml.parse([[]]..post_body.html..[[]]); if not html then module:log("warn", "mod_post_msg: invalid XML: %s", err); return 400;