Mercurial > prosody-modules
diff mod_slack_webhooks/mod_slack_webhooks.lua @ 3094:39d714abbc2b
mod_slack_webhooks: Split long line to improve readability [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Jun 2018 14:59:09 +0200 |
parents | 7ed0589eff3c |
children | 3a6a48b83b4f |
line wrap: on
line diff
--- 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";