mIRC Homepage
I'm trying to remove users based on a certain word in their info instead of purging the entire userlevel.
I have this, but it doesn't do anything.

Code:
alias rem.some.users {
  var %u = 1
  while $ulist([color:red]My.user.level[/color],%u) {
    if ([color:red]one.word.of.the.info[/color] isin $ulist($address($nick,3),[color:red]My.user.level[/color],%u).info) 
    ruser [color:red]My.user.level[/color] $nick 3
    else {
      inc %u
    }
  }
}
 


Any suggestions would be appreciated.
Code:
alias rem.some.users {
  var %i = $ulist(*,$1,0)
  while (%i) {
    if ($istok($ulist(*,$1,%i).info,$2,32)) .ruser $1 $ulist(*,$1,%i)
    dec %i
  }
}


/rem.some.users <level> <word>

- untested
tested and working (and much more simple than mine). Thanks smile
© mIRC Discussion Forums