Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR committed Jan 8, 2025
1 parent 4460e15 commit 7373e6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dependency.lic
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ unless Settings['dependency_version'] == $DEPENDENCY_VERSION
Settings.save
end

unless CharSettings['dependency_setflags']
unless UserVars.dependency_setflags
echo("Checking MonsterBold and ShowRoomID flags.")
flags = Lich::Util.issue_command("flag", /^Usage/, /^For other setting options, see AVOID, SET, and TOGGLE/, quiet: true, timeout: 1, usexml: false)
mandatory_flags = ["ShowRoomID", "MonsterBold"]
mandatory_flags.each do |flag|
unless flags.any?{ |f| f.match?(/#{flag}\s+ON/) }
unless flags.any? { |f| f.match?(/#{flag}\s+ON/) }
fput("flag #{flag} on")
end
end
CharSettings['dependency_setflags'] = Time.now
UserVars.dependency_setflags = Time.now
end

class Object
Expand Down

0 comments on commit 7373e6b

Please sign in to comment.