mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2003
Posts: 9
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Joined: Dec 2003
Posts: 9
How do I kick every one but ops? in a channel

Joined: Nov 2003
Posts: 2,327
T
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
Joined: Mar 2004
Posts: 130
T
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

 


Link Copied to Clipboard