Nicklist mass modes

By ^silk on Nov 03, 2007

Simple, select the nicks and select the action. Performs selected upon those nicks.

/* 
Nicklist mass modes - ^silk
Simple, select the nicks and select the action. Performs selected upon those nicks. 
*/

menu nicklist {
  $iif($me isop #,Mass, $style(2) Mass): 
  .Mass +o:massnick +o
  .Mass -o:massnick -o
  .-
  .Mass +h:massnick +h
  .Mass -h:massnick -h
  .-
  .Mass +v:massnick +v
  .Mass -v:massnick -v
  .-
  .Mass +e:massnick +e
  .Mass -e:massnick -e
  .-
  .Mass +I:massnick +I
  .Mass -I:massnick -I
  .-
  .Mass +b:massnick +b
  .Mass -b:massnick -b
}

alias -l massnick { 
  var %x = 1 
  while ($snick(#,%x)) { 
    var %j = %j $v1
    if ($modespl == $numtok(%j, 32)) {
      mode # $+($left($1,1),$str($right($1,1),%j)) %j 
      %j = ""
    }
    inc %x
  }
  if (%j) mode # $+($left($1,1),$str($right($1,1),$numtok(%j,32))) %j
}

Comments

Sign in to comment.
^silk   -  Nov 06, 2007

Decided to remove the mass ban and mass kick because they would really flood the channel out. if anyone feels they want the mass ban and kick in the snippet again, please let me know.

 Respond  
Lanten   -  Nov 06, 2007

for which networks does this work? tried it on dalnet.. mass +v, +I, +e +b, etc might be working, but when trying mass ban kick with reason, returns an error: /ban: no such user Mass
same with mass kick w/ reason: /if: invalid format.. i mean i don\'t know if this works for dalnet.. (but if not intended for dalnet, maybe specify the description :)

^^,

 Respond  
^silk   -  Nov 06, 2007

oops. I thought I fixed that when I updated, guess not. thanks Scakk, as to SpotRedDog: are you manually typing /massnick? You can\'t because of alias -l. Please use the menu command. ^^

Updating the error right now. :]

 Respond  
Scakk   -  Nov 06, 2007

SpotRedDog - 1) make it : massnick 2) I think you missed the last }

^silk - You have the mode listed opposite the mode done.
Ex:

.Mass -o:massnick +o
.Mass +o:massnick -o
 Respond  
SpotRedDog   -  Nov 06, 2007

A is unknown mode char to me

F is unknown mode char to me

K is unknown mode char to me

a is unknown mode char to me

a is unknown mode char to me

d is unknown mode char to me

e is unknown mode char to me

u is unknown mode char to me
B is unknown mode char to me

u is unknown mode char to me

h is unknown mode char to me

e is unknown mode char to me

a is unknown mode char to me

d is unknown mode char to me

d is unknown mode char to me

e is unknown mode char to me

a is unknown mode char to me

d is unknown mode char to me

duckpond Channel key already set

e is unknown mode char to me

G is unknown mode char to me

B is unknown mode char to me

_ is unknown mode char to me

Then I try again and get this you tell me I think it dosn\'t work.

 Respond  
SpotRedDog   -  Nov 06, 2007

-
MASSNICK Unknown command

This is what I get when I try using this looks like its not working.

 Respond  
^silk   -  Nov 05, 2007

updated: now includes kick & kickban

 Respond  
^silk   -  Nov 04, 2007

updated! now modified to nicklist.

 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.