hey all,

i kinda stumped on something, i'm trying to get a query option in this script working. its for a custom window /w list box what it does is list ops in da listbox. but it only looks at the first name in the list no matter which name you click on.. was hoping someone could shed some light on this .. this is what i'm doing:
Code:
Query $remove($1,@):/query $remove($line(@Chat.Win,$sline(@Chat.Win,$1),1),@)
 

thats my menu code

Code:
alias Chat.Refresh {
  var %ptr = 1- $+ $line(%Chat.WinName,0,1)
  dline -l %Chat.WinName %ptr
  %ptr = $nick(%Chat.Chan,0,o)
  while (%ptr) {
    var %opnick = $remove($nick(%Chat.Chan,%ptr,o).pnick,+)
    if ($istok(%Chat.Bots,%opnick,44) != $true) { aline -l %Chat.WinName %opnick }
    dec %ptr
  }
}
 

and thats the alias that rereshes the window nlist... as you can see i'm using the pnick switch to show prefixes, could that be why it's not working??

thanks in advance