mass op deop voice devoice

Platform:  mIRC
Published  Mar 29, 2007
Updated  Mar 29, 2007
i guess u know what its for :=p
prefix
for mass voice : /mass voice or /mass +v
for mass devoice : /mass devoice or /mass -v
for mass op : /mass op or /mass +o
for mass deop : /mass deop or /mass -o

alias mass {
if ($me isop $chan) {
if ($1 isin +vvoice) { set %prefix $+(+,$str(v,$modespl)) | goto start }
if ($1 isin -vdevoice) { set %prefix $+(-,$str(v,$modespl)) }
if ($1 isin +oop) { set %prefix $+(+,$str(o,$modespl)) | goto start }
if ($1 isin -odeop) { set %prefix $+(-,$str(o,$modespl)) }
:start
set %massing $nick($chan,0)
while (%massing) {
if ($nick($chan,%massing) != $me) { set %mass1 %mass1 $nick($chan,%massing) }
if ($gettok(%mass1,0,32) = $modespl) { mode $chan %prefix %mass1 | unset %mass1 }
dec %massing
}
mode $chan %prefix %mass1 | unset %mass1
}
else { echo -a *** Error you're not an op on $chan *** }
}

Comments

Sign in to comment.
ElVirus   -  Jul 24, 2012
should have a mass deprotect or -a as well.
 Respond  
edward_cullen   -  Nov 18, 2008
make it like just +op <nick> or -op <nick> +v <nick> -v <nick> +h <nick> -h <nick> ^.^
 Respond  
Darkkeeper   -  Apr 01, 2007
This script could come in handy lol
 Respond  
Zachery   -  Apr 01, 2007
how so?, it cant re-devoice them (afaik)
 Respond  
no_body21   -  Mar 30, 2007
annoying if the other users are already voiced/opped or regular users
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.