HI There,

Iv made a script that whois every person before they enter and if they are in the "bad channels" then they get kicked out of the channel as the Teen channel has a age restriction on.

Now in the script if added nicks that must not be kicked if they are in that channels, but it does not work, it still keep kicking the ppl out.

Could i please get some help on the script and tell me where i went wrong.

Quote:
on *:join:#TeenZone: {
if ($nick != $me) {
.raw whois $nick
set %cc.whois $nick
}
}
raw 319:*: {
var %chan = #TeenZone
if (%cc.whois) {
if (#vanman isin $3-) &&& (%cc.whois != statsbot) (%cc.whois != SilentAngel) {
mode %chan +bb %cc.whois $address(%cc.whois, 2)
kick %chan %cc.whois You are to old to be in this channel
}
}
halt
}

raw *:*:halt


Thanks

Andrew