Hi, I'm doing my script and it must detect bad words. This is how it works : for every subject (adverts, sex, bad language, etc) I have 2 lists. The first one is a list of exceptions and the second is a list of words to detect. For example in sex.ini you might have :

[Exceptions]
*sexy*=on
*red*hot*=on

[Words]
*sex*=on
*hot*=on

For each line said on a channel, it goes through the first list and if it doesn't finds any matching mask, goes through the second list. If ever it finds something there, it will call me.
But due to the big number of lists and of words in them, I takes a lot of time.
I was wondering how I could reduce that time with the .ini files or if it was probably better to use hash tables, not yet knowing how to use them.
Could you guide me by either giving me a better way to go through my .ini lists or how to use the hash tables ?
Thank you in advance for any help smile