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 }
}
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.
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.
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 } }