mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2003
Posts: 994
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
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.


I refuse to engage in a battle of wits with an unarmed person. wink
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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

Joined: Jun 2003
Posts: 994
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
tested and working (and much more simple than mine). Thanks smile


I refuse to engage in a battle of wits with an unarmed person. wink

Link Copied to Clipboard