Skip to content

Commit

Permalink
fix(visitors): Fix a check that can result missing main participants.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Dec 17, 2024
1 parent d8cca36 commit 938d112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/prosody-plugins/mod_fmuc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ module:hook('muc-occupant-pre-join', function (event)
else
occupant.role = 'visitor';
end
elseif room.moderators_list:contains(resource) then
elseif room.moderators_list and room.moderators_list:contains(resource) then
-- remote participants, host is the main prosody
occupant.role = 'moderator';
end
Expand Down

0 comments on commit 938d112

Please sign in to comment.