mod_slack_webhooks: Rename variables no avoid name clash [luacheck]
authorKim Alvefur <zash@zash.se>
Sat, 02 Jun 2018 14:58:49 +0200
changeset 3097 7ed0589eff3c
parent 3096 0f63e999d0e4
child 3098 39d714abbc2b
mod_slack_webhooks: Rename variables no avoid name clash [luacheck]
mod_slack_webhooks/mod_slack_webhooks.lua
--- 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