# HG changeset patch # User Kim Alvefur # Date 1527944349 -7200 # Node ID 39d714abbc2b8b61913ab135f9dfbd12eb36d9ea # Parent 7ed0589eff3cb6f258161fee535fbb640f8606cb mod_slack_webhooks: Split long line to improve readability [luacheck] diff -r 7ed0589eff3c -r 39d714abbc2b mod_slack_webhooks/mod_slack_webhooks.lua --- a/mod_slack_webhooks/mod_slack_webhooks.lua Sat Jun 02 14:58:49 2018 +0200 +++ b/mod_slack_webhooks/mod_slack_webhooks.lua Sat Jun 02 14:59:09 2018 +0200 @@ -51,7 +51,13 @@ return; end - local json_out = {channel_name = from_room, timestamp = now(), text = body, team_domain = from_host, user_name = from_nick}; + local json_out = { + channel_name = from_room, + timestamp = now(), + text = body, + team_domain = from_host, + user_name = from_nick, + }; local stanzaid = stanza:get_child("id"); if stanzaid and string.sub(stanzaid,1,string.len("webhookbot"))=="webhookbot" then json_out["bot_id"] = "webhookbot";