multiple channel kick

Platform:  mIRC
Published  Sep 20, 2007
Updated  Sep 20, 2007
this script kicks out people who join with too many channels in their whois (default set to 15). It is generally useful in finding spammers who join many channels.Have fun! on @*:join:#channel:{ whois $nick }
raw 319:*:{
set %nochannels $3-
if ($numtok(%nochannels,32) > 15) {
var %i = $chan(0)
while (%i) {
if ($2 ison $chan(%i)) {
kick $chan(%i) $2 Kick message here
ban $chan(%i) $2 3
}
dec %i
}
unset %nochannels
}
}

Comments

Sign in to comment.
M[n]M   -  Sep 22, 2007
ty i\'ll update it
 Respond  
Gummo   -  Sep 21, 2007
Code
 

Why not just use
Code
 

You\'d eliminate two lines (setting/unsetting variable) by doing that. Also, you can try $comchan
:)
 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.