Hello,
Quote:
while $get($nick,%i).wid != $get(-1).wid { inc %i }
close -g $+ %i $nick

This is excellent!! I'll workship you henceforth grin

For those who are interested, here's the final code I settled for:
Code:
on 1:FILERCVD:*:{
  var %i = 1
  while (%i <= $get($nick,0)) {
    if ($get($nick,%i).wid == $get(-1).wid) {
      close -g $+ %i $nick
      break
    }
    inc %i
  }
}

Thanks and regards.