Software /
code /
prosody-modules
Comparison
mod_slack_webhooks/mod_slack_webhooks.lua @ 3093:7ed0589eff3c
mod_slack_webhooks: Rename variables no avoid name clash [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Jun 2018 14:58:49 +0200 |
parent | 3092:0f63e999d0e4 |
child | 3094:39d714abbc2b |
comparison
equal
deleted
inserted
replaced
3092:0f63e999d0e4 | 3093:7ed0589eff3c |
---|---|
12 local now = require "util.datetime".datetime; | 12 local now = require "util.datetime".datetime; |
13 local json = require "util.json" | 13 local json = require "util.json" |
14 local formdecode = require "net.http".formdecode; | 14 local formdecode = require "net.http".formdecode; |
15 local http = require "net.http"; | 15 local http = require "net.http"; |
16 | 16 |
17 local function get_room_from_jid(mod_muc, jid) | 17 local function get_room_from_jid(mod_muc, room_jid) |
18 if mod_muc.get_room_from_jid then | 18 if mod_muc.get_room_from_jid then |
19 return mod_muc.get_room_from_jid(jid); | 19 return mod_muc.get_room_from_jid(room_jid); |
20 elseif mod_muc.rooms then | 20 elseif mod_muc.rooms then |
21 return mod_muc.rooms[jid]; -- COMPAT 0.9, 0.10 | 21 return mod_muc.rooms[room_jid]; -- COMPAT 0.9, 0.10 |
22 end | 22 end |
23 end | 23 end |
24 | 24 |
25 local routing = module:get_option("outgoing_webhook_routing") or {}; | 25 local routing = module:get_option("outgoing_webhook_routing") or {}; |
26 local listen_path = module:get_option("incoming_webhook_path") or "/webhook"; | 26 local listen_path = module:get_option("incoming_webhook_path") or "/webhook"; |