on *:exit:{
hsave total total
hsave prize prize
}
on *:text:*you sent*:#:{
hinc -m total $chan
hinc -m prize $nick
}
on *:start:{
hmake total 100
hmake prize 100
if ($file(total).shortfn) hload total $v1
if ($file(prize).shortfn) hload prize $v1
}
on *:text:!prizes*:#:{
var %total = $hget(total,$chan), %prize = $hget(prize,$2)
msg $chan $iif(!$2,%total,%prize) prize(s) sent from $iif(!$2,$chan,$2)
}