mIRC Home    About    Download    Register    News    Help

Print Thread
#162824 23/10/06 02:27 AM
Joined: Oct 2006
Posts: 2
T
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Oct 2006
Posts: 2
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"

#162825 23/10/06 03:11 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

#162826 23/10/06 05:20 AM
Joined: Oct 2006
Posts: 2
T
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Oct 2006
Posts: 2
thanks to answer but this code do not work to me, single crash my mirc


Link Copied to Clipboard