Skip to content

Commit

Permalink
cast durations to int
Browse files Browse the repository at this point in the history
  • Loading branch information
rcuhljr committed Aug 9, 2016
1 parent 2713f29 commit 56b15cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spellmonitor.lic
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ spell_action = proc do |server_string|
DRSpells.active_spells[Regexp.last_match(1)] = 0
DRSpells.refresh_data[Regexp.last_match(1)] = true
elsif server_string =~ %r{<pushStream id="percWindow"/> (.*) \((\d+) roisaen\)}
DRSpells.active_spells[Regexp.last_match(1)] = Regexp.last_match(2)
DRSpells.active_spells[Regexp.last_match(1)] = Regexp.last_match(2).to_i
DRSpells.refresh_data[Regexp.last_match(1)] = true
elsif server_string =~ %r{<popStream/><pushStream id="percWindow"/> (.+) \((\d+) roisaen\)}
DRSpells.active_spells[Regexp.last_match(1)] = Regexp.last_match(2)
DRSpells.active_spells[Regexp.last_match(1)] = Regexp.last_match(2).to_i
DRSpells.refresh_data[Regexp.last_match(1)] = true
end

Expand Down

0 comments on commit 56b15cd

Please sign in to comment.