mIRC Home    About    Download    Register    News    Help

Print Thread
#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
#22958 07/05/03 10:19 AM
Joined: May 2003
Posts: 730
S
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 ] ]
}
}


#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
#22960 07/05/03 04:42 PM
Joined: Apr 2003
Posts: 29
B
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
}
}

#22961 07/05/03 05:30 PM
Joined: Dec 2002
Posts: 1,527
_
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

Link Copied to Clipboard