Returning here seems wrong.. that means that if there's a DM in the room, any other players in the room after the DM in the list won't be affected.

I think you can just add this check to the one at line 146.