Skip to content

Commit

Permalink
Merge pull request #6941 from MahtraDR/dependency_safe_room
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR authored Oct 22, 2024
2 parents 2a2a725 + 608316a commit 8229b5c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dependency.lic
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require 'ostruct'
require 'digest/sha1'
require 'monitor'

$DEPENDENCY_VERSION = '1.7.2'
$DEPENDENCY_VERSION = '1.7.3'
$MIN_RUBY_VERSION = '3.2.2'

no_pause_all
Expand Down Expand Up @@ -1287,6 +1287,15 @@ class SetupFiles
settings.hometown ||= UserVars.hometown
settings.hometown = $HOMETOWN if $HOMETOWN

# Denylist for rooms we don't support being used as safe_rooms
disallowed_safe_rooms = [5713]
if disallowed_safe_rooms.include?(settings.safe_room) || disallowed_safe_rooms.include?(settings.safe_room_id)
_respond("<pushBold/>#{settings.safe_room} is not a valid safe room setting.<popBold/>")
_respond("<pushBold/>Exiting.<popBold/>")
_respond("<pushBold/>Please edit your yaml to use a different safe room.<popBold/>")
exit
end

# If these room settings are defined as maps with a
# room id configured per town, then grab the hometown room id
# and assign it directly to the setting.
Expand Down

0 comments on commit 8229b5c

Please sign in to comment.