Skip to content

Commit

Permalink
fix: Adds check for missing main_room.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Sep 21, 2023
1 parent 7ccd68e commit b5b7019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/prosody-plugins/mod_persistent_lobby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ run_when_component_loaded(lobby_muc_component_host, function(host_module, host_n
local lobby_room = event.room;
local main_room = lobby_room.main_room;

if is_healthcheck_room(main_room.jid) or not has_persistent_lobby(main_room) then
if not main_room or is_healthcheck_room(main_room.jid) or not has_persistent_lobby(main_room) then
return;
end

Expand Down

0 comments on commit b5b7019

Please sign in to comment.