Lobby feature

Hi,
I found this code in the community, which automatically turns the lobby function on whenever a meeting starts.
Here is the hook code:

host_module:hook(‘muc-set-affiliation’, function(event)
if jid_split(event.jid) ~= ‘focus’ and event.affiliation == ‘owner’ then
handle_create_lobby(event);
end
end);

Please, can anyone tell exactly where I need to add this code, can you give me the path how I can get there.

@Giri-sh-irke , please can you help?

Thanks a lot in advance.

if you look at this post you’ll see the file name above the patch. The directory is the jitsi-meet location for lua modules:
/usr/share/jitsi-meet/prosody-plugins

Hi,
Thanks a lot, works as needed!