diff --git a/spellmonitor.lic b/spellmonitor.lic index b9a9e094ab..778e00aee5 100644 --- a/spellmonitor.lic +++ b/spellmonitor.lic @@ -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{ (.*) \((\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{ (.+) \((\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