mIRC Homepage

Simple BLACKLIST (Help)

Posted By: tech_diown

Simple BLACKLIST (Help) - 23/10/06 02:27 AM

Hello i have a simple code of blacklist on my script

on @*:JOIN:#:{
if (hot isin $nick) && (hotmail !isin $nick) { $badbadnick }
}

alias badbadnick {
.auser badnick $nick | ban -u300 # $nick $+ ! | kick # $nick 4 $+ %razonNICK $+ 
}

on @badnick:JOIN:#:{
ban -u300 # $nick $+ !
kick $chan $nick %razonNICK
}

on @*:nick:{
if ($ulist($newnick,badnick,1) iswm $newnick) {
ban -u300 $chan $newnick $+ !
kick $chan $newnick %razonNICK
}
}





I want that when I enter the channel and badnicks that already is in the channel kick them automatically, since it could do it?

"nicks which they agree with "if (hot isin $nick) && (hotma..." and nicks that is with level badnick"
Posted By: RusselB

Re: Simple BLACKLIST (Help) - 23/10/06 03:11 AM

Code:
on *:op:#:{
if $opnick == $me {
check.badnicks $chan
}
}
on *:serverop:#:{
if $opnick == $me {
check.badnicks $chan
}
}
alias check.badnicks {
var %a = 1
while %a <= $nick($1,0) {
if badnick isin $level($nick($1,%a)) {
.ban -ku300 $1 $nick($1,%a) 4
dec %a
}
inc %a
}
}
 


This will check the nicks that are already on the channel when you are opped, rather than when you join, since you don't have kick/ban privileges until you are opped. A lot of networks will op you very quickly after joining, but there is a little bit of a delay.
Posted By: tech_diown

Re: Simple BLACKLIST (Help) - 23/10/06 05:20 AM

thanks to answer but this code do not work to me, single crash my mirc
© 2020 mIRC Discussion Forums