I downloaded 3 different variations of a chan ban script and they mention banning channels according to a whois match. How would this work with a channel tha is +s since it won't appear in the whois (unless the bot is also in that chan)? Will the script still work or is there no way around this?
This all depends on how you are going about it all.
Doing a whois directly on a user, will return all the data you need to do a ban.
It is impossible to do a whois on a channel, as this is a nickname specific command.
The who command is a channel and nickname command.
The names command is channel only.
No matter what channels settings that are in place (unless you are on a server, that doen't use the modes as set in the RFC), you can gain hostname information, so long as you are on the same channel as the person (as stated, a whois will get the information regardless).
Considering you are pointing to banning users from other channels (though yo don't state where the ban will take place), it would be wise to post some more information regarding what you hope to accomplish.
Sorry but I dont think u guys understood what I meant. Let me show you an explanation of what the script does first:
#badchan 1.0 by Bass of Undernet's #eggdrop (bass@tclslave.net)
#
#This is a basic 'badchan' script to auto-ban ppl who are on other chans deemed 'bad'
#People are scanned on-join.
So what I need to know is how this will work with a secret channel since it won't show up in a whois.
You can do something else, it's a bit dumb but will work. Put an eggdrop on the 'blacklisted' channel and the eggdrop that is dealing with the "blacklist' will ask for the 'slave' if $nick is in that channel 2.
Once the game is over, the king and the pawn go back in the same box.