--- 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";