Mass kick

By X-FILE on Jan 27, 2004

This is just a little snippet and can be handle for those who use simple mIRC and like to add only small codes in way
to keep their mIRC on control (Full scripts always give troubles , expecially to IRC operators or just simple operator
of the room. All i can say about this masskick code is that , if you are operator in a room and for some reasons you need
(or want) to kick all the users in it , then just type /masskick in the channel. I plan to do some other mass stuff
and some flood protection snippets in the will.

;copy and paste this code to your mirc script editor/remotes.
alias masskick {
  unset %total
  set %count.nick 0
  set %total $nick(#,0)
  :start
  inc %count.nick
  if (%count.nick > %total) { halt }
  if ($nick(#,%count.nick) == $me) { goto start }
  else { kick # $nick(#,%count.nick) Masskick Everyone is kicked so don't take it personal . | goto start }
}

Comments

Sign in to comment.
xplo   -  Nov 14, 2008

i got flooded off using your lame script :p 2004 is a long way from home :p

 Respond  
ReaperX   -  Aug 09, 2004

this snippet is stupid. Why would anyone want an mass kick script? is this for warez? or something because this is really gay.

 Respond  
UTUCS.com-Admin   -  Jan 31, 2004

[|Red-X|], did you accidentally post two times? Please give a valid reason for posting it two times, because that basically makes useless comments when you post it two times!

 Respond  
X-FILE   -  Jan 30, 2004

Honestly i don\'t see any reason (apart personal reason ,im talking about you [|Red-X|] ) why i should change the code. Tye , you are right but it works fine even how it actualy is.

 Respond  
tye   -  Jan 29, 2004

If you\'re making a snippet to be used across multiple networks then you should not assume that the features of each network are the same. Different ircds allow you to kick different amounts of users in one command. Since the server does not tell you how many you can kick in one command it is best to assume that you can only kick one (as X-FILE did). Overall this snippet is not very good though. It may work but it uses bad scripting conventions. You should use local variables for this snippet instead of global variables. You should have used a while loop instead of a goto loop. Goto loops are much slower and harder to read. There should also be code to throttle the kicks so you do not flood yourself off the server when masskicking large channels.

 Respond  
X-FILE   -  Jan 29, 2004

First of all , just to let you know , some friends told me it works fine even on Dal Net network. to be honest i didn\'t do this for ircd servers.I don\'t stay on ircd networks but this works fine even on them. If u have any doubt , let me know and we\'re gonna test it (well i did before uploading on small chans, big chans, users with the same ip , same host and it worked perfectly. Also , you should know , the snippet is supposted to be simple , others can understand the code and honestly my snippet is easier to understand then the code you showed. about the code you wrote , i have seen that before.

 Respond  
[|Red-X|]   -  Jan 29, 2004

according to your snippet..if you have 20 nicks in your %total you will need to send 19 kick commands to a server for kicking them out..except your nick, while below snippet only needs 4 kick comands

 Respond  
[|Red-X|]   -  Jan 29, 2004

alias masskick { var %total = $nick(#,0) | while (%total) { if ($nick(#,%total) != $me) { set %mkicklist $addtok(%mkicklist,$nick(#,%total),44) } | inc %mkicklimit | if (%mkicklimit == 4) { kick # %mkicklist Masskick | unset %mkick } | dec %total } | if (%mkicklist) { kick # %mkicklist Masskick | unset %mkick } }

 Respond  
[|Red-X|]   -  Jan 29, 2004

ur snippet do not consider the kicklen of a network where the snippet to be used... for i.e DALNET one kick command can kick 4 nicks, undernet 2 nicks..,below is how ur script code for dalnet server: alias masskick {

 Respond  
[|Red-X|]   -  Jan 29, 2004

ur snippet do not consider the kicklen of a network where the snippet to be used... for i.e DALNET one kick command can kick 4 nicks, undernet 2 nicks..,below is how ur script code for dalnet server: alias masskick {

 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.