You can load the ini file to a hash table and then output the relevant results like so:
Code:
on *:text:!prizes *:#:{
  var %f $+(prizes,#,.ini)
  if $ini(%f,$2) {
    if (!$hget(prize)) hmake prize 200
    .msg # * Prize(s) for $2 are as follows:
    hload -i prize %f $2
    var %r 1
    while %r <= $hget(prize,%r).item {
      .timer 1 $calc(%r *2) msg # $hget(prize,%r).data
      inc %r
    }
    hfree prize
  }
  else .msg # * The nickname $2 doesn't exist! 
}