mIRC Homepage
Posted By: pheonix Mass Kick Protection - 07/05/03 10:09 AM
Im working on a protection so that if more then 5 users are kicked in 1 go then the kicker will be banned.
will the alias for the nicks kicked still be $knick?.
e.g
on ^*:KICK:#:{
if (%mk == $null) && ($nick != $me) {
/set %mk 1
}
if (!%mk) && ($knick != $me) && ($nick != $me) && (!%mknick) && ($nick == %mknick) {
/inc %mk 1
}
elseif (%mknick == $null) && ($nick != $me) {
/set %mknick $nick
}
if (%mk >= 5) {
access # clear
access # add deny $address(%mknick,1)
kick $chan %mknick you've kicked more than 5 users(N)
/unset %mk
/unset %mknick
}
}
confused
Posted By: ScatMan Re: Mass Kick Protection - 07/05/03 10:19 AM
hmm its not very good but try this:
on @!*:kick:#:{
if ($knick != $me) {
inc %mk. [ $+ [ # ] $+ . $+ [ $nick ] ]
if (%mk. [ $+ [ # ] $+ . $+ [ $nick ] ] >= 5) {
kick # $nick you've kicked more than 5 users(N)
unset %mk. [ $+ [ # ] $+ . $+ [ $nick ] ]
}
}

Posted By: pheonix Re: Mass Kick Protection - 07/05/03 10:55 AM
cheers anyway but i edited the 1 i made n its quite good grin
Posted By: BoXeRn_ Re: Mass Kick Protection - 07/05/03 04:42 PM
on @!*:kick:#: {
if (%k. [ $+ [ $address($nick,1) ] $+ . $+ [ $chan ] ] ==
$null) {
set -u8 %k. [ $+ [ $address($nick,1) ] $+ . $+ [ $chan ] ] 1
return
}
else { inc %k. [ $+ [ $address($nick,1) ] $+ . $+ [ $chan ] ] }
if (%k. [ $+ [$address($nick,1) ] $+ . $+ [ $chan ] ] > 3 && %kicks_ == $null) {
set -u6 %kicks_ 1
.mode $chan -ooo $nick | .kick $chan $nick Mass Kick. Go Sit In A Corner
}
}
Posted By: _D3m0n_ Re: Mass Kick Protection - 07/05/03 05:30 PM
boxern isnt yours setup to ban the kicker not the kickee if your not the one doing the kicking? maybe im reading urs wrong but thats the impression i get ..... nick is the kicker and knick is the kickee
© mIRC Discussion Forums