that wouldn't help if they set +s (secert) or +p (private) mode for channel, so it will be invisible on whois list and therefore your bot/script could not be able to check it...