# HG changeset patch # User Matthew Wild # Date 1611760398 0 # Node ID d86592775a2094f3e59f703221940e37ed038774 # Parent 76d045f76f65d6435b6eb1cf9355a6ed703abde7 mod_groups_internal: Fix unintended global variable (thanks luacheck) diff -r 76d045f76f65 -r d86592775a20 mod_groups_internal/mod_groups_internal.lua --- a/mod_groups_internal/mod_groups_internal.lua Wed Jan 27 14:55:55 2021 +0000 +++ b/mod_groups_internal/mod_groups_internal.lua Wed Jan 27 15:13:18 2021 +0000 @@ -168,9 +168,9 @@ function delete(group_id) if group_members_store:set(group_id, nil) then - info = get_info(group_id) - if info and info.muc_jid then - muc_host.delete_room(muc_host.get_room_from_jid(info.muc_jid)) + local group_info = get_info(group_id) + if group_info and group_info.muc_jid then + muc_host.delete_room(muc_host.get_room_from_jid(group_info.muc_jid)) end return group_info_store:set(group_id, nil); end