Mohamed Mansour's Personal Website
Portfolio
MIRC MASS CHANNEL KICK
Posted in MIRC with 1480 views.
“„
Since it is Canada Day and I wanted to mass kick everyone from my Ottawa Chatting Channel so I made this nifty script that does it.
This MiRC Script kicks everyone in the channel that is not in my exempt list. The exempt list is nick separated by spaces for the nicknames.
Since many networks have an auto flood control bot, I made it auto kick every 5 seconds so I wouldn't be banned in that network!
It works like a charm :)... Enjoy!
CODE:
; /*
; * Mass Kick everyone in the current
; * Channel. The exempt list wont be
; * kicked!
; *
; * @author Mohamed Mansour
; * @since 7/01/2006
; * @build 1.0
; */
alias Tools.Masskick {
;// Exempt List
var %exempt = nick1 nick2 nick3
;// Set to False since nicklist not complete
var %status = 0
;// Current Nicklist pointer
var %i = 1
;// Current Nick Name
var %curr_nick = $null
;// Lets loop the nicklist
while ( %status == 0 ) {
;// The current Nick in the Nicklist via Pointer
%curr_nick = $nick(#,%i)
;// Checking nicklist
if ( $istok( %exempt , %curr_nick ,32) ) { echo -an ( $+ %i $+ ) %curr_nick exempt }
else if ( %curr_nick == $null ) { %status = 1 }
else if ( %curr_nick == $me ) { echo -an ( $+ %i $+ ) %curr_nick me }
else { timer 1 5 kick # %curr_nick Channel under construction, try again later. }
;// Increment
inc %i
}
}
;// ### Menu
menu channel {
-
Mass Kick: /Tools.Masskick
-
}