@Kardafol: okay mate, copy that and thank you!

I already have an on !*:join:#channel: whois $nick

I need to enhance the whois event queue timer to check the channel every now and then. For instance, the porn bots have already joined before me. So, I have to manually whois all the people in the channel, i was thinking i'll use a masswhois so that it can detect the bad channels.

The codes im using is working perfectly fine on small channels consist of less than 50 people. But, above from that i'll get disconnected from the server (excess flood).