mIRC Home    About    Download    Register    News    Help

Print Thread
How do I kick ever one but Ops? #90079 11/07/04 06:57 PM
Joined: Dec 2003
Posts: 9
MuscleCar Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Joined: Dec 2003
Posts: 9
How do I kick every one but ops? in a channel

Re: How do I kick ever one but Ops? #90080 11/07/04 07:03 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
var %i = 1
while ($nick($chan,%i,a,o)) {
kick $chan $ifmatch
inc %i
}


New username: hixxy
Re: How do I kick ever one but Ops? #90081 11/07/04 07:04 PM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
;explain

this Identify returns all nicks except ops $nopnick(#,0)

;Loop

Code:
 
alias knop {
var %x = $nopnick($1,0)
while (%x) {
kick $1 $nopnick($1,%x) 
dec %x
 }
}

;dont try this if you are not oped on the channel

:usage:/knop #channelname