mod_groups_internal: Fix accidental global [luacheck]
authorKim Alvefur <zash@zash.se>
Tue, 12 Oct 2021 13:52:12 +0200
changeset 4710 428861d1d1e4
parent 4709 ace4f251a64b
child 4711 27f7ed9f50cd
mod_groups_internal: Fix accidental global [luacheck]
mod_groups_internal/mod_groups_internal.lua
--- a/mod_groups_internal/mod_groups_internal.lua	Sun Oct 10 20:10:29 2021 +0100
+++ b/mod_groups_internal/mod_groups_internal.lua	Tue Oct 12 13:52:12 2021 +0200
@@ -146,7 +146,7 @@
 	-- TODO: we should probably prohibit changing/removing the MUC JID of
 	-- an existing group.
 	if info.muc_jid then
-		room = muc_host.get_room_from_jid(info.muc_jid);
+		local room = muc_host.get_room_from_jid(info.muc_jid);
 		room:set_name(info.name);
 	end