The silence whois is integrated in my script so I cant show you the codes. This is wat i am using now. This codes adds %chan in the variable thats why I see the whois in the channel.

on @!*:join:#:{
if (%drone == off) || !%drone || (%options.exempt == on) { return }
else set %chan $chan
}
raw 319:*:{
if $numtok($3-,32) > 9 && !$istok(@ +,$3-,32) {
.ban -k %chan $chan $2 2 14Drone Bot Detected
}
halt
}