Changeset

4706:428861d1d1e4

mod_groups_internal: Fix accidental global [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 12 Oct 2021 13:52:12 +0200
parents 4705:ace4f251a64b
children 4707:27f7ed9f50cd
files mod_groups_internal/mod_groups_internal.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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