mIRC Home    About    Download    Register    News    Help

Print Thread
remove user based on a single word in the .info #140253 23/01/06 03:43 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline OP
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
Re: remove user based on a single word in the .inf #140254 23/01/06 03:50 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
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

Re: remove user based on a single word in the .inf #140255 23/01/06 03:57 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline OP
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