# HG changeset patch # User Kim Alvefur # Date 1401302097 -7200 # Node ID 9b6fbababb8c56c71b82969fb7a2bae637b0ae9f # Parent 7ddb522d9b28e0f34f3aa2b0194b4d79f576d5ed mod_post_msg: Fix indentation diff -r 7ddb522d9b28 -r 9b6fbababb8c mod_post_msg/mod_post_msg.lua --- a/mod_post_msg/mod_post_msg.lua Thu May 22 08:30:16 2014 +0200 +++ b/mod_post_msg/mod_post_msg.lua Wed May 28 20:34:57 2014 +0200 @@ -48,14 +48,14 @@ elseif body_type == "application/x-www-form-urlencoded" then local post_body = formdecode(request.body); message = msg({ to = post_body.to or to, from = authed_user, - type = post_body.type or "chat"}, post_body.body); + type = post_body.type or "chat"}, post_body.body); if post_body.html then - local html, err = xml.parse(post_body.html); - if not html then - module:log("warn", "mod_post_msg: invalid XML: %s", err); - return 400; - end - message:tag("html", {xmlns="http://jabber.org/protocol/xhtml-im"}):add_child(html):up(); + local html, err = xml.parse(post_body.html); + if not html then + module:log("warn", "mod_post_msg: invalid XML: %s", err); + return 400; + end + message:tag("html", {xmlns="http://jabber.org/protocol/xhtml-im"}):add_child(html):up(); end else return 415;