changeset 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
parents 0f63e999d0e4
children 39d714abbc2b
files mod_slack_webhooks/mod_slack_webhooks.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_slack_webhooks/mod_slack_webhooks.lua	Sat Jun 02 14:58:28 2018 +0200
+++ b/mod_slack_webhooks/mod_slack_webhooks.lua	Sat Jun 02 14:58:49 2018 +0200
@@ -14,11 +14,11 @@
 local formdecode = require "net.http".formdecode;
 local http = require "net.http";
 
-local function get_room_from_jid(mod_muc, jid)
+local function get_room_from_jid(mod_muc, room_jid)
 	if mod_muc.get_room_from_jid then
-		return mod_muc.get_room_from_jid(jid);
+		return mod_muc.get_room_from_jid(room_jid);
 	elseif mod_muc.rooms then
-		return mod_muc.rooms[jid]; -- COMPAT 0.9, 0.10
+		return mod_muc.rooms[room_jid]; -- COMPAT 0.9, 0.10
 	end
 end