on *:text:!top5:#: {
if (%Top5.fld) { return }
set -u10 %Top5.fld On
hsave -n TopScores hash.tmp
filter -ffcuten 2 32 hash.tmp hash.tmp
var %cnt = 1
while (%cnt <= 5) {
var %data = $read(hash.tmp,%cnt)
msg $chan $hget(TopScores,$gettok(%data,1,32)).item is %cnt $+ / $+ $hget(TopScores,0).item with $gettok(%data,2,32) points
inc %cnt
}
.remove hash.tmp
}