filtering kick,mass kick,op,deop,voice and devoice specially for dalnet

By [|Red-X|] on Jun 22, 2004

The following snippet's is for filtering kick, mass kick, mass op , mass deop, mass voice and mass devoice which fit with dalnet server. To use Filterkick, mass op/deop/vocie/devoice, u need to select nicks than execute the commands.
Filtering kick :;to use it put the following into your nicklist popups... Uses: select nicks you want to kick than click it
;$iif($me isop #,Kick): fkicka <-- for kick only
;$iif($me isop #,K/ban) : fkicka ban <-- for kick + ban

Masskick/mass deop
syntax : /kickall # reason <-- for mass kick
syntax : dopall # <-- for mass deop, select nicks and execute it
put the following into your channel popup
&Mass action
.kick : if ($$?!="are you sure to kick them all out?" == $true) kickall # Out
.deop : if ($$?!="are you sure to deop all ops?" == $true) dopall #

for mass op, voice and devoice u can see on the snippet's
if you want it to be able to run on any network ... use $modespl to limit the number of parameters per mode ..it's used on mass op.deop,voice and devoice for i.e if (%dopall.limit == 6) { raw -q mode $1 - [ $+ [ $str(o,6) ] ] %dopall.list | unset %dopall. } change it with if (%dopall.limit == $modespl) { raw -q mode $1 - [ $+ [ $str(o,$modespl) ] ] %dopall.list | unset %dopall. }

; filtering kick
alias fkicka {
  var %n = $numtok($snicks,44) 
  while (%n) { 
    %snicks = $addtok(%snicks,$gettok($snicks,%n,44),44) 
    inc %snicks.limit
    if (%snicks.limit == 4) { kick # %snicks $1- | if ($1 == ban) .raw -q mode # + [ $+ [ $str(b,$numtok(%snicks,44)) ] ] $replace(%snicks,$chr(44),$chr(32)) | unset %snicks* }
    dec %n
  }
  if (%snicks) { kick # %snicks $1- | if ($1 == ban) .raw -q mode # + [ $+ [ $str(b,$numtok(%snicks,44)) ] ] $replace(%snicks,$chr(44),$chr(32)) | unset %snicks*  }
}
;to use it put the following into your nicklist popups... Uses: select nicks you want to kick than click it
;$iif($me isop #,Kick): fkicka             <-- for kick only
;$iif($me isop #,K/ban) : fkicka ban     <-- for kick + ban

;masskick -> syntax : /kickall # reason
alias kickall {
 if ($me isop $1) {
    var %x = $nick($1,0)
    while (%x >= 1) {
      if ($nick($1,%x) != $me) { set %mkicklist $addtok(%mkicklist,$nick($1,%x),44) }
      inc %mkicklimit 
      if (%mkicklimit == 4) { kick $1 %mkicklist $2- | unset %mkick* }
      dec %x 
    }
    if (%mkicklist) { kick $1 %mkicklist $2- | unset %mkick* }
    raw -q mode $1 +bmRip *
  }
}

;Mass deop -> syntax : /dopall # 
alias dopall {
  if ($me isop $1) {
    var %x = $nick($1,0,o,vr) 
    while (%x >= 1) {
      if ($nick($1,%x,o) != $me) { set %dopall.list $addtok(%dopall.list,$nick($1,%x,o),32) }
      inc %dopall.limit 
      if (%dopall.limit == 6) { raw -q mode $1 - [ $+ [ $str(o,6) ] ] %dopall.list | unset %dopall.*  }
      dec %x 
    }
    if (%dopall.list) { raw -q mode # - [ $+ [ $str(o,$numtok(%dopall.list,32)) ] ] %dopall.list | unset %dopall.*  }
  }
}

;Mass op -> syntax : /mop 
alias mop {
  if ($me isop #) {
    var %n = $numtok($snicks,44) 
    while (%n) { 
      %snicks = $addtok(%snicks,$gettok($snicks,%n,44),32) 
      inc %snicks.limit
      if (%snicks.limit == 6) { raw -q mode # + [ $+ [ $str(o,6) ] ] %snicks | unset %snicks* }
      dec %n
    }
    if (%snicks) { raw -q mode # + [ $+ [ $str(o,$numtok(%snicks,32)) ] ] %snicks | unset %snicks*  }
  }
}
;Mass deop -> syntax : /mdop 
alias mdop {
  if ($me isop #) {
    var %n = $numtok($snicks,44) 
    while (%n) { 
      %snicks = $addtok(%snicks,$gettok($snicks,%n,44),32) 
      inc %snicks.limit
      if (%snicks.limit == 6) { raw -q mode # - [ $+ [ $str(o,6) ] ] %snicks | unset %snicks* }
      dec %n
    }
    if (%snicks) { raw -q mode # - [ $+ [ $str(o,$numtok(%snicks,32)) ] ] %snicks | unset %snicks*  }
  }
}
;Mass voice -> syntax : /mvo
alias mvo {
  if ($me isop #) {
    var %n = $numtok($snicks,44) 
    while (%n) { 
      %snicks = $addtok(%snicks,$gettok($snicks,%n,44),32) 
      inc %snicks.limit
      if (%snicks.limit == 6) { raw -q mode # + [ $+ [ $str(v,6) ] ] %snicks | unset %snicks* }
      dec %n
    }
    if (%snicks) { raw -q mode # + [ $+ [ $str(v,$numtok(%snicks,32)) ] ] %snicks | unset %snicks*  }
  }
}

;Mass devoice -> syntax : /mdvo
alias mdvo {
  if ($me isop #) {
    var %n = $numtok($snicks,44) 
    while (%n) { 
      %snicks = $addtok(%snicks,$gettok($snicks,%n,44),32) 
      inc %snicks.limit
      if (%snicks.limit == 6) { raw -q mode # - [ $+ [ $str(v,6) ] ] %snicks | unset %snicks* }
      dec %n
    }
    if (%snicks) { raw -q mode # - [ $+ [ $str(v,$numtok(%snicks,32)) ] ] %snicks | unset %snicks*  }
  }
}

Comments

Sign in to comment.
AnDyWong   -  Nov 25, 2008

wanna masskick?? just //kick # * ..

 Respond  
JacK™   -  Oct 07, 2008

lol

 Respond  
Joshuaxiong1   -  Jan 12, 2008

lol

 Respond  
Joshuaxiong1   -  Jan 12, 2008

lol

 Respond  
guest598594   -  Dec 19, 2007

tell her urself :/

 Respond  
Joshuaxiong1   -  Dec 19, 2007

Anyone know RedCaliGirl on irc.dal.net ? Tell her I miss her and love her very much.

 Respond  
Vortex   -  Jul 19, 2005

Uggggh..Dude..Is all I have to say about this Snippet. Its alright but its also kinda lame and useless. I\'d rather take off the MassKick there\'s really no need for it at all. It basically depends what server you\'re on and what kind of people happen to go there. :) But for the server I go to you might wanna keep this Snippet in handy. /server -m irc.animelab.com /join #Truth_or_Dare --OR-- /join #animelab

 Respond  
Lordki-an-X   -  Jun 25, 2004

I want to hear from you as soon as posible... i have a lot of things to discuess with you! :)

 Respond  
Lordki-an-X   -  Jun 25, 2004

Ehemmzzzz long time no talk my old Friend [|Red-X|]. How you doing this time bro... its so long since the last time we have a little conversation. Your still the Master of Scripting... the only Best Weapon I have if we talk about scripting... well..

 Respond  
[|Red-X|]   -  Jun 25, 2004

i would suggest to use it on emergency circumstances, it can use to kick some one that abusing a channel which tying to temporarily taking over that also putting so many clones in channel. I mean we don\'t need to use mass chanserv action...which actually abusing services.

 Respond  
j0k3r   -  Jun 23, 2004

what could possibly be good about a mass kick option?

 Respond  
[|Red-X|]   -  Jun 23, 2004

hhmm...jOk3r.. so dont use for laming purposes..P~

 Respond  
j0k3r   -  Jun 22, 2004

wow, cool! ....and by cool i mean really lame.

 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.