mass + % @ & ~

By DarkFlaze on Apr 11, 2007

awesome mass op script, by Flaze, Works by typing /mass, e.g.
/mass +v
/mass +h
so on and so forth

warning, you must be at least halfop to use mass commands

Edit: Code now works if you're a channel operator, You may edit it if you use a server where there are half operators.

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)) }
    if ($1 isin +qowner) { set %prefix $+(+,$str(q,$modespl)) | goto start }
    if ($1 isin -qdeowner) { set %prefix $+(-,$str(q,$modespl)) }
    if ($1 isin +aprotect) { set %prefix $+(+,$str(a,$modespl)) | goto start }
    if ($1 isin -adeprotect) { set %prefix $+(-,$str(a,$modespl)) }
    if ($1 isin +hhalfop) { set %prefix $+(+,$str(h,$modespl)) | goto start }
    if ($1 isin -hdehalfop) { set %prefix $+(-,$str(h,$modespl)) }
    if ($1 isin +eexcept) { set %prefix $+(+,$str(e,$modespl)) | goto start }
    if ($1 isin -eunexcept) { set %prefix $+(-,$str(e,$modespl)) }
    if ($1 isin +Iinvitelist) { set %prefix $+(+,$str(I,$modespl)) | goto start }
    if ($1 isin -Iinvitelist) { set %prefix $+(-,$str(I,$modespl)) }
    if ($1 isin +bban) { set %prefix $+(+,$str(b,$modespl)) | goto start }
    if ($1 isin -bunban) { set %prefix $+(-,$str(b,$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 do not have operator status on $chan *** }
}

Comments

Sign in to comment.
guest598594   -  Mar 08, 2008
if ($1 isin -vdevoice) {

that means if i type \"ce\" it\'ll match

one solution would be

if ($regex($1,/([+-])v|devoice/i)) set %prefix $+($regml(1),$str(v,$modespl))
 Respond  
Flaze   -  Mar 08, 2008

I\'ll fix up the code and repost it.

 Respond  
Sora-   -  Oct 11, 2007

Good, but I think something might be wrong with it..
Error you\'re not an halfop on #blah
Error you\'re not an halfop on #blah
-(15:44)- !down
-(15:44)- AnimeBot sets mode: -q Sora-
-(15:44)- !halfop
-(15:44)-
AnimeBot sets mode: +h Sora-
-(15:44)- Sora- sets mode: +vvv EagleMage Itachi AnimeBot
-(15:44)- !up
-(15:44)-
AnimeBot sets mode: +q Sora-

 Respond  
peterpowell   -  Apr 16, 2007

good job..

but halfops cant set +h anyway :/

-pp

 Respond  
Xemnas   -  Apr 13, 2007

Omg, IS THERE TWO SAURABH\'S? :o Well, gj Flaze, may need to clean up that script a little through.

 Respond  
S*A*U*R*A*B*H   -  Apr 13, 2007

Nice Flaze ^^

 Respond  
Solo   -  Apr 12, 2007

@sasuke !aliases HAVE to be huge\" i don\'t think i have ever seen anyything more stupid on the entire internet.
Here is another good link to a good clean one

http://www.hawkee.com/snippet/2166/

 Respond  
deadoralive   -  Apr 12, 2007

lol.. hey flaze... how you doing

 Respond  
BackoffJackson   -  Apr 11, 2007

This code is MUCH cleaner.
http://www.hawkee.com/snippet/696/
Nice job, anyway.

 Respond  
Sasuke   -  Apr 11, 2007

Oh, good script by the way. Nice options, \'cause I just needed to ban a room full of cybering noobs. :D 6/10

 Respond  
Sasuke   -  Apr 11, 2007

@Solo: It\'s an Alias. Aliases HAVE to be huge. It\'s in the Binary Bible.

 Respond  
Solo   -  Apr 11, 2007

Another thing is if i am opped and not halfopped it will not not work even though it should because i am opped.

 Respond  
Solo   -  Apr 11, 2007

The code is HUGE. There are ones that have been done in 5-7 lines.

 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.