mIRC Home    About    Download    Register    News    Help

Print Thread
Mass Kick Protection #22957 07/05/03 10:09 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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


new username: tidy_trax
Re: Mass Kick Protection #22958 07/05/03 10:19 AM
Joined: May 2003
Posts: 730
S
ScatMan Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
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 ] ]
}
}


Re: Mass Kick Protection #22959 07/05/03 10:55 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
cheers anyway but i edited the 1 i made n its quite good grin


new username: tidy_trax
Re: Mass Kick Protection #22960 07/05/03 04:42 PM
Joined: Apr 2003
Posts: 29
B
BoXeRn_ Offline
Ameglian cow
Offline
Ameglian cow
B
Joined: Apr 2003
Posts: 29
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
}
}

Re: Mass Kick Protection #22961 07/05/03 05:30 PM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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


D3m0nnet.com