mIRC Home    About    Download    Register    News    Help

Print Thread
M
MuscleCar
MuscleCar
M
How do I kick every one but ops? in a channel

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
var %i = 1
while ($nick($chan,%i,a,o)) {
kick $chan $ifmatch
inc %i
}

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