Diff

mod_groups_internal/mod_groups_internal.lua @ 4706:428861d1d1e4

mod_groups_internal: Fix accidental global [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 12 Oct 2021 13:52:12 +0200
parent 4430:71c495fa03f3
child 4707:27f7ed9f50cd
line wrap: on
line diff
--- 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