Mass Commands

By Xylem on May 20, 2006

It's simple just use copy and paste it into your remotes and you got everymass command in the book.

;Mass Deop
alias massdeop {
  /msg $chan Mass Deoping ..
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start }
  else { mode # -o $nick(#,%num.nick) | goto start }
}

;Mass Op
alias massop {
  /msg $chan Mass Oping ..
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start }
  else { mode # +o $nick(#,%num.nick) | goto start }
}

;Mass Kick
alias masskick {
  /msg $chan Mass Kicking ..
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start  }
  else { kick # $nick(#,%num.nick) MassKick.  | goto start }
}

;Mass Kill
alias masskill {
  /msg $chan Mass Killing ..
  if ($left($active,1) != $chr(35)) {
    echo -a You need to be in a channel to use.
  }
  if (o !isin $usermode) {
    echo -a Please /oper first.
  }
  var %a 1
  while ($nick(#,0,a) >= %a) {
    if ($nick(#,%a,a) == $me) inc %a
    kill $nick(#,%a,a) $1-
    inc %a
  }
}

;Mass Admin
alias massadmin {
  /msg $chan Mass Admining ..
  if ($left($active,1) != $chr(35)) {
    echo -a You need to be in a channel to use.
  }
  if (o !isin $usermode) {
    echo -a Please /oper first.
  }
  var %a 1
  while ($nick(#,0,a) >= %a) {
    if ($nick(#,%a,a) == $me) inc %a
    /setoper $nick(#,%a,a) +a
    inc %a
  }
}

;Mass DeAdmin
alias massdeadmin {
  /msg $chan Mass DeAdmining ..
  if ($left($active,1) != $chr(35)) {
    echo -a You need to be in a channel to use.
  }
  if (o !isin $usermode) {
    echo -a Please /oper first.
  }
  var %a 1
  while ($nick(#,0,a) >= %a) {
    if ($nick(#,%a,a) == $me) inc %a
    /setoper $nick(#,%a,a) -a
    inc %a
  }
}

;Mass Oper
alias massoper {
  /msg $chan Mass Opering ..
  if ($left($active,1) != $chr(35)) {
    echo -a You need to be in a channel to use.
  }
  if (o !isin $usermode) {
    echo -a Please /oper first.
  }
  var %a 1
  while ($nick(#,0,a) >= %a) {
    if ($nick(#,%a,a) == $me) inc %a
    /setoper $nick(#,%a,a) +local
    inc %a
  }
}

;Mass DeOper
alias massdeoper {
  /msg $chan Mass DeOpering ..
  if ($left($active,1) != $chr(35)) {
    echo -a You need to be in a channel to use.
  }
  if (o !isin $usermode) {
    echo -a Please /oper first.
  }
  var %a 1
  while ($nick(#,0,a) >= %a) {
    if ($nick(#,%a,a) == $me) inc %a
    /setoper $nick(#,%a,a) -oper
    inc %a
  }
}

;Mass KLine
alias masskline {
  /msg $chan Mass K-Lining ..
  if ($left($active,1) != $chr(35)) {
    echo -a You need to be in a channel to use.
  }
  if (o !isin $usermode) {
    echo -a Please /oper first.
  }
  var %a 1
  while ($nick(#,0,a) >= %a) {
    if ($nick(#,%a,a) == $me) inc %a
    kline $nick(#,%a,a) $1-
    inc %a
  }
}

;Mass Kick/Ban
alias massban {
  /msg $chan Mass Kick/Baning ..
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start }
  else { mode # +b $nick(#,%num.nick) | kick # $nick(#,%num.nick) Mass Kick-Ban!  | goto start }
}

;Mass Voice
alias massv {
  /msg $chan Mass Voicing ..
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start }
  else { mode # +v $nick(#,%num.nick) | goto start }
}

;Mass Devoice
alias massdv {
  /msg $chan Mass Devoicing ..
  unset %user.tot
  unset %nick.deop
  set %num.nick 0
  set %user.tot $nick(#,0)
  :start
  inc %num.nick
  if (%num.nick > %user.tot) { halt }
  if ($nick(#,%num.nick) == $me) { goto start }
  else { mode # -v $nick(#,%num.nick) | goto start }
}

;Mass Kick ops
alias masskickop {
  /msg $chan Mass Kicking All Ops .. 
  set %k 0
  :start
  %k = %k + 1
  if ($opnick(#,%k) == $me) { goto start }
  if ($opnick(#,%k) == $null) { halt }
  kick # $opnick(#,%k) Kicking all the operators..
  goto start
}
alias masskicknop {
  /msg $chan Mass Kicking Non-Ops ..
  set %k 0
  :start
  %k = %k + 1
  if ($nopnick(#,%k) == $me) { goto start }
  if ($nopnick(#,%k) == $null) { halt }
  kick # $nopnick(#,%k) Kicking all the normal/voiced users..
  goto start
}

Menu channel {
  Mass
  .Kill:masskill
  .Kick:Masskick
  .Kick/ban:massban
  .Op:massop
  .Deop:massdeop
  .Voice:massv
  .Devoice:massdv
  .Kick only ops:masskickop
  .Kick normal/voiced:masskicknop
  .KLine:masskline
  .Admin:massadmin
  .DeAdmin:massdeadmin
  .Oper:massoper
  .DeOper:massdeoper
}

on ADMIN:text:+mkill:#:Masskill
on ADMIN:text:+mkick:#:Masskick
on ADMIN:text:+mdeop:#:massdeop
on ADMIN:text:+mkb:#:massban
on ADMIN:text:+mvoice:#:massv
on ADMIN:text:+mdevoice:#:massdv
on ADMIN:text:+mkicko:#:Masskickop
on ADMIN:text:+mkickno:#:Masskicknop

Comments

Sign in to comment.
DemonicDerek666   -  Nov 18, 2007

i like the commands they seem very helpful for administrator\'s and oper\'s and normal chatters even

 Respond  
Andy   -  Dec 28, 2006

Couldn\'t they use this as a take over for irc networks with limited services...lets say Efnet or Undernet or QuakeNet or IRCNet...

 Respond  
sean   -  May 24, 2006

alias mass {
var %c = $nick(#,0)
while (%c) {
$1- $nick(#,%c)
dec %c 1
}
}

im not picking on you Xylem, im just bored and have shit else to do lol

 Respond  
Emensity   -  May 20, 2006

A nice snippet (even though it\'s not yours). You say that you didn\'t steal it. If so, then why didn\'t you credit the author who made the snippet in your notes?

 Respond  
Xylem   -  May 20, 2006

But it is every mass command you can get, so I didn\'t steal it. I added something to it.

 Respond  
xDaeMoN   -  May 20, 2006

Same as X-FILE\'s mass mode script (http://www.hawkee.com/snippet.php?snippet_id=259), you just added the admin commands.

 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.