Mirc simple mass mode script

By hell-of-the-devil on Sep 02, 2014

Just a simple script to mass mode users in a channel, also includes mass ban.

This is so far the shortest way i can come up with to get this to work properly

menu nicklist {
  .Channel Mode
  ..Owner: //mode # + [ $+ [ $str(q, $0) ] ] $1-
  ..Deowner: //mode # - [ $+ [ $str(q, $0) ] ] $1-
  ..-
  ..Admin: //mode # + [ $+ [ $str(a, $0) ] ] $1-
  ..Deadmin: //mode # - [ $+ [ $str(a, $0) ] ] $1-  
  ..-
  ..Op: //mode # + [ $+ [ $str(o, $0) ] ] $1-
  ..Deop: //mode # - [ $+ [ $str(o, $0) ] ] $1-
  ..-
  ..HalfOp: //mode # + [ $+ [ $str(h, $0) ] ] $1-
  ..Dehalfop: //mode # - [ $+ [ $str(h, $0) ] ] $1-
  ..-
  ..Voice: //mode # + [ $+ [ $str(v, $0) ] ] $1-
  ..Devoice: //mode # - [ $+ [ $str(v, $0) ] ] $1-
  .-
  .Kick: //kick # $1-
  .Ban: //mode # + [ $+ [ $str(b, $0) ] ] $1-
}

Comments

Sign in to comment.
Yawhatnever   -  Sep 03, 2014

Why are you using eval brackets everywhere?

hell-of-the-devil  -  Sep 04, 2014

because it's the way i code, & they are only eval brackets in certin cases, in this case they are to stop script errors and make it run that little bit faster, "eval" brackets parse alot faster as it works (in a sence) like how you do long devision, it calculates everything inside the brackets before it initiates the whole line as one, e.g //mode # + [ $+ [ $str(v, $0) ] ] $1- would parse to //mode # +[v * $0] $1-

Sign in to comment

hell-of-the-devil   -  Sep 02, 2014

i forgot to add - modes to deop and that, sorry :/

 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.